03.03.2014, 11:27
Ok, all you said I made, but now:
ERROR:
The Script :
And the lines are :
118:
120:
121:
ERROR:
Код:
#:\#\#\gamemode.pwn(118) : error 017: undefined symbol "UserPath" #:\#\#\gamemode.pwn(120) : error 017: undefined symbol "UserPath" #:\#\#\gamemode.pwn(121) : error 001: expected token: "-string end-", but found "-identifier-" #:\#\#\gamemode.pwn(121) : warning 215: expression has no effect #:\#\#\gamemode.pwn(121) : error 001: expected token: ";", but found "-string-" #:\#\#\gamemode.pwn(121) : warning 215: expression has no effect #:\#\#\gamemode.pwn(121) : error 001: expected token: "-string end-", but found "-identifier-" #:\#\#\gamemode.pwn(121) : fatal error 107: too many error messages on one line
Код:
public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_GREY"Login",""COLOR_GREY"Type your password below to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_GREY"Registering...",""COLOR_GREY"Type your password below to register a new account.","Register","Quit"); } return 1; }
118:
Код:
if(fexist(UserPath(playerid)))
Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_GREY"Login",""COLOR_GREY"Type your password below to login.","Login","Quit");