22.09.2012, 18:29
Hi all,
I got another prob, with register dialog.
I dont know why but its giving me this error:
on this dialog:
Can someone help me plz?
I allready changed the ''params'' to ''inputtext'' because a dailog cant have ''params'', maybe I did something wrong there?
I got another prob, with register dialog.
I dont know why but its giving me this error:
Quote:
(257) : error 029: invalid expression, assumed zero (260) : error 029: invalid expression, assumed zero (260) : error 029: invalid expression, assumed zero (260) : warning 215: expression has no effect (260) : error 001: expected token: ";", but found "return" (260) : fatal error 107: too many error messages on one line |
pawn Код:
// This line here <> is line number 256
if(dialogid == 100){ //Dialog REgister
if(playerid, response, inputtext[]){
//The player has pressed "Register"
new password[23];//Creating a variable to store the password
if(sscanf(inputtext[]),"s[23]",password)) return KickPlayer(Kick(playerid);
new file[64],PlayerName[24];
GetPlayerName(playerid,PlayerName,sizeof PlayerName);
format(file,sizeof file,"Players/%s.ini",PlayerName);
if(fexist(file)) return SendClientMessage(playerid,-4,"This username is allready registerd, try another one!");
INI_Open(file);
INI_WriteString("Password",password);
INI_WriteInt("Level",PInfo[playerid][Level]);
INI_Save();
INI_Close();
SendClientMessage(playerid,-1,"You have successfully registered!");
PInfo[playerid][Logged] = 1;
return 1;
}
I allready changed the ''params'' to ''inputtext'' because a dailog cant have ''params'', maybe I did something wrong there?