04.09.2010, 19:09
So i'm trying to make register/login system in dialogs I'm trying to learn from my fails but i really don't know what i'm doing I'm using Djson
Код:
C:\Users\Machlik\Downloads\samp03bsvr_R2_win32\gamemodes\Untitled.pwn(149) : warning 215: expression has no effect C:\Users\Machlik\Downloads\samp03bsvr_R2_win32\gamemodes\Untitled.pwn(150) : error 035: argument type mismatch (argument 3) C:\Users\Machlik\Downloads\samp03bsvr_R2_win32\gamemodes\Untitled.pwn(154) : error 035: argument type mismatch (argument 3) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); PlayerInfo[playerid][pSelect] == 0; if(!djIsSet("%s.json","player/name", name)) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Register","Enter your password below:","Register","Cancel"); } else if(djIsSet("%s.json","player/name", name)) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel"); } }