04.09.2010, 19:20
Tell me if i did it correct
I'm gettin' only those warnings
If it's good please give me a point how to make password save
Код:
new name[MAX_PLAYER_NAME]; new string[128]; new file[128]; GetPlayerName(playerid, name, sizeof(name)); PlayerInfo[playerid][pSelect] == 0; format(file,sizeof(file),"%s.json","player/name",name); if(!djIsSet(file)) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Register","Enter your password below:","Register","Cancel"); } else if(djIsSet(file)) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel"); } }
Код:
C:\Users\Machlik\Downloads\samp03bsvr_R2_win32\gamemodes\Untitled.pwn(153) : warning 202: number of arguments does not match definition C:\Users\Machlik\Downloads\samp03bsvr_R2_win32\gamemodes\Untitled.pwn(157) : warning 202: number of arguments does not match definition C:\Users\Machlik\Downloads\samp03bsvr_R2_win32\gamemodes\Untitled.pwn(148) : warning 204: symbol is assigned a value that is never used: "string"