Error when compiling my script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error when compiling my script (
/showthread.php?tid=602324)
Error when compiling my script -
Stefhan - 05.03.2016
I get this error;
Код:
C:\Users\stefh\Desktop\Mapping server\gamemodes\Sweet.pwn(274) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\stefh\Desktop\Mapping server\gamemodes\Sweet.pwn(274) : warning 215: expression has no effect
C:\Users\stefh\Desktop\Mapping server\gamemodes\Sweet.pwn(274) : error 001: expected token: ";", but found "-string-"
C:\Users\stefh\Desktop\Mapping server\gamemodes\Sweet.pwn(274) : warning 215: expression has no effect
C:\Users\stefh\Desktop\Mapping server\gamemodes\Sweet.pwn(274) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\stefh\Desktop\Mapping server\gamemodes\Sweet.pwn(274) : fatal error 107: too many error messages on one line
at this code:
Код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
cant find the fix, help
Re: Error when compiling my script -
MicroKyrr - 06.03.2016
I notice that you are using "DIALOG_STYLE_INPUT" instead of "DIALOG_STYLE_PASSWORD" and why are you using colors in dialog.
PHP код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Type your password below to login.", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registering...", "Type your password below to register a new account.", "Register", "Quit");
}
return 1;
}