error 001: expected token: "-string end-", but found "-identifier-"
#1

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-"
Reply
#2

Which one is line:61?
Reply
#3

is your "PATH" defined?

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

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

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

No -_________________________________________-
#define PATH
Reply
#7

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
Reply
#8

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"
Reply
#9

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

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

Reply
#10

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

Do you have AddPlayerClass lines in your gamemode?

http://www.wiki.sa-mp.com/wiki/AddPlayerClass
Reply
#12

lmfao of course,
nevermind I fixed it

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


Forum Jump:


Users browsing this thread: 1 Guest(s)