[+REP] login system wont work [/+REP] - 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: [+REP] login system wont work [/+REP] (
/showthread.php?tid=430043)
[+REP] login system wont work [/+REP] -
NicholasA - 12.04.2013
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
Re: [+REP] login system wont work [/+REP] -
MP2 - 12.04.2013
How about showing the errors? That might be an idea.
Re: [+REP] login system wont work [/+REP] -
LarzI - 12.04.2013
Clearly your "UserPath" macro is faulty. Please show us how you define it.
Re: [+REP] login system wont work [/+REP] -
NicholasA - 12.04.2013
#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.
|
Re: [+REP] login system wont work [/+REP] -
[XST]O_x - 12.04.2013
You forgot the closing quotation mark.
pawn Код:
#define UserPath "Users/%s.ini"