[+REP] login system wont work [/+REP]
#1

My server wont load since the GM has too many errors the errors are in the red line
Код:
stock Path(playerid)
{
    new str[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(str,sizeof(str),UserPath,name);
    return str;
}
I have no idea whats wrong, please help +rep
Reply
#2

How about showing the errors? That might be an idea.
Reply
#3

Clearly your "UserPath" macro is faulty. Please show us how you define it.
Reply
#4

#define UserPath "Users/%s.ini

and

Quote:

C:\Users\x3990.003\Desktop\samp server\gamemodes\XTRPStunt.pwn(37) : error 037: invalid string (possibly non-terminated string)
C:\Users\x3990.003\Desktop\samp server\gamemodes\XTRPStunt.pwn(37) : error 017: undefined symbol "Users"
C:\Users\x3990.003\Desktop\samp server\gamemodes\XTRPStunt.pwn(37) : error 017: undefined symbol "s"
C:\Users\x3990.003\Desktop\samp server\gamemodes\XTRPStunt.pwn(37) : fatal error 107: too many error messages on one line

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


4 Errors.

Reply
#5

You forgot the closing quotation mark.
pawn Код:
#define UserPath "Users/%s.ini"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)