C:\Users\Mike\Desktop\gamemodes\log.pwn(85) : error 001: expected token: ")", but found ","
C:\Users\Mike\Desktop\gamemodes\log.pwn(88 ) : error 017: undefined symbol "DIALOG_SYTLE_INPUT"
C:\Users\Mike\Desktop\gamemodes\log.pwn(96) : warning 225: unreachable code
C:\Users\Mike\Desktop\gamemodes\log.pwn(98 ) : warning 225: unreachable code
C:\Users\Mike\Desktop\gamemodes\log.pwn(571) : error 017: undefined symbol "imputtext"
C:\Users\Mike\Desktop\gamemodes\log.pwn(582) : error 037: invalid string (possibly non-terminated string)
C:\Users\Mike\Desktop\gamemodes\log.pwn(582) : error 017: undefined symbol "s"
C:\Users\Mike\Desktop\gamemodes\log.pwn(582) : error 029: invalid expression, assumed zero
C:\Users\Mike\Desktop\gamemodes\log.pwn(582) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
public OnPlayerRequestClass(playerid, classid)
{
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(Spielerdatei, sizeof(Spielerdatei, "/Accounts/%s.ini", name);
if(dini_Exists(Spielerdatei))
{
ShowPlayerDialog(playerid, DIA_LOG, DIALOG_SYTLE_INPUT, "Login","Bitte logge dich ein:","Login","Abbrechen");
return 1;
}
else
{
ShowPlayerDialog(playerid,DIA_REG, DIALOG_STYLE_INPUT,"Register","Bitte registriere dich:","Registrieren","Abbrechen");
return 1;
}
return 1;
}
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIA_REG)
{
if(response == 0)
{
SendClientMessage(playerid, COLOR_GRÜN, "Du hast auf Abbrechen geklickt und wirst deshalb gekickt!");
Kick(playerid);
return 1;
}
else
{
Register(playerid, imputtext);
return 1;
}
}
return 1;
}
stock Register(playerid, key[])
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(Spielerdatei, sizeof(Spielerdatei), "/Accounts/%s.ini,name);
dini_Create(Spielerdatei);
dini_Set(Spielerdatei,"Passwort", key);
return 1;
}
Was ich komisch finde, in pawno wird bei Dini.inc nichts angezeit. nur weiße flächen.
weiß nicht ob das so richtig is aber naja.
Danke im Vorraus.
LG