SA-MP Forums Archive
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 001: expected token: "-string end-", but found "-identifier-" (/showthread.php?tid=371355)



error 001: expected token: "-string end-", but found "-identifier-" - _Khaled_ - 23.08.2012

HEllo
pawn Код:
stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}
Код:
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(61) : error 001: expected token: "-string end-", but found "-identifier-"



Re: error 001: expected token: "-string end-", but found "-identifier-" - Akira297 - 23.08.2012

Which one is line:61?


Re: error 001: expected token: "-string end-", but found "-identifier-" - FalconX - 23.08.2012

is your "PATH" defined?

I think yes, could you please show us your define which is something like #define PATH Your_Path


Re: error 001: expected token: "-string end-", but found "-identifier-" - clarencecuzz - 23.08.2012

Show your #define PATH. I have a feeling the error is in that.


Re: error 001: expected token: "-string end-", but found "-identifier-" - _Khaled_ - 23.08.2012

pawn Код:
format(string,sizeof(string),PATH,playername);



Re: error 001: expected token: "-string end-", but found "-identifier-" - clarencecuzz - 23.08.2012

No -_________________________________________-
#define PATH


Re: error 001: expected token: "-string end-", but found "-identifier-" - _Khaled_ - 23.08.2012

pawn Код:
#define PATH "/Administration/Users/%s.ini"*/
PATH define

Chillax clarencecuzz I was just showing it to Akira..

I used this btw
http://forum.sa-mp.com/showthread.ph...egister+system


Re: error 001: expected token: "-string end-", but found "-identifier-" - FalconX - 23.08.2012

Quote:
Originally Posted by _Khaled_
Посмотреть сообщение
pawn Код:
#define PATH "/Administration/Users/%s.ini"*/
PATH define

Chillax clarencecuzz I was just showing it to Akira..

I used this btw
http://forum.sa-mp.com/showthread.ph...egister+system
Why do you have "*/" in it? remove and then try.. O_O

pawn Код:
#define PATH "/Administration/Users/%s.ini"



Re: error 001: expected token: "-string end-", but found "-identifier-" - =WoR=G4M3Ov3r - 23.08.2012

PHP код:
#define PATH "/Administration/Users/%s.ini" 
Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 73 seconds.




Re: error 001: expected token: "-string end-", but found "-identifier-" - _Khaled_ - 23.08.2012

No compiling error, but it doesn't make me choose the skin to login on
pawn Код:
public OnPlayerRequestClass(playerid, classid)



Re: error 001: expected token: "-string end-", but found "-identifier-" - clarencecuzz - 23.08.2012

Do you have AddPlayerClass lines in your gamemode?

http://www.wiki.sa-mp.com/wiki/AddPlayerClass


Re: error 001: expected token: "-string end-", but found "-identifier-" - _Khaled_ - 23.08.2012

lmfao of course,
nevermind I fixed it

The once who had done, add setplayerpos and spawnplayer in OnPlayerConnect so it skipped OnPlayerRequestClass.