SA-MP Forums Archive
Some string and identifier errors? - 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: Some string and identifier errors? (/showthread.php?tid=304294)



Some string and identifier errors? - |}eath - 17.12.2011

Код:
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(144) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(144) : warning 215: expression has no effect
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(144) : error 001: expected token: ";", but found "-string-"
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(144) : warning 215: expression has no effect
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(144) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\new\Desktop\Server\gamemodes\rrp.pwn(144) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
/* Credits to Kush. */
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_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering",""COLOR_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
Anyway to fix?


Re: Some string and identifier errors? - Ash. - 17.12.2011

I'm not too sure, it looks fine to me. The only thing I can think of is that the COLOUR_* defines should have a hash (#) in front of them. Try that?


Re: Some string and identifier errors? - |}eath - 17.12.2011

Quote:
Originally Posted by funky1234
Посмотреть сообщение
I'm not too sure, it looks fine to me. The only thing I can think of is that the COLOUR_* defines should have a hash (#) in front of them. Try that?
Nope, added two more errors after trying.

EDIT: Both didn't work.


Re: Some string and identifier errors? - Ash. - 17.12.2011

What line is line 144? The INI_Parse line?