[ERROR]Requesting help with error 001: expected token: "-string end-", but found "-identifier-" - 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]Requesting help with error 001: expected token: "-string end-", but found "-identifier-" (
/showthread.php?tid=412103)
[ERROR]Requesting help with error 001: expected token: "-string end-", but found "-identifier-" -
Magic_Time - 31.01.2013
Hi,
I compiled my gamemode, I get this error:
Error list:
Code:
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : warning 215: expression has no effect
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 001: expected token: ";", but found ")"
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
PHP Code:
public OnPlayerConnect(playerid)
{
new str[128], string[256];
if(fexist(Path(playerid)))//Line 55
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
format(string, sizeof(string), "Welcome back {1580EA}%s. {D4D4D4}This account is registered. \nInsert your password to login to your account", Name(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login",string,"Login","Quit");
}
else
{
format(string, sizeof(string), "Welcome! {1580EA}%s. {D4D4D4}This account is not registered.\nEnter your own password to create a new account.", Name(playerid));
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register",string,"Register","Quit");
return 1;
}
format(str, sizeof(str), "{44BBBB}[Server]: {00FFFF}%s {FFFFFF}has joined in the server. Welcome him to {4DA8B3}FlyBy {1515EA}Cops {FFFFFF}and {FF0000}Robbers", Name(playerid));
SendClientMessageToAll(-1, str);
return 1;
}
Thanks in advance.
Re: [ERROR]Requesting help with error 001: expected token: "-string end-", but found "-identifier-" -
Scenario - 31.01.2013
Show your Path function.
Re: [ERROR]Requesting help with error 001: expected token: "-string end-", but found "-identifier-" -
Bakr - 31.01.2013
Please show us your Path() function.
Re: [ERROR]Requesting help with error 001: expected token: "-string end-", but found "-identifier-" -
Magic_Time - 31.01.2013
PHP Code:
stock Path(playerid)
{
new str[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),UserPath,name);
return str;
}
Re: [ERROR]Requesting help with error 001: expected token: "-string end-", but found "-identifier-" -
Scenario - 31.01.2013
Can you show the "UserPath" define?