SA-MP Forums Archive
Need help.. Something not right with user register system. - 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: Need help.. Something not right with user register system. (/showthread.php?tid=454336)



Need help.. Something not right with user register system. - Scrillex - 28.07.2013

Hello Dear SAMP forum users.. Long time didn't post here... So I need some help...

I did everything like tutorial said but... still something is not likable to pawn.... Maybe someone could help me.
Error line:

pawn Код:
(304) : error 037: invalid string (possibly non-terminated string)
(304) : error 017: undefined symbol "Users"
(304) : error 017: undefined symbol "s"
(304) : fatal error 107: too many error messages on one line
CODE:

pawn Код:
stock Path(playerid)
{
    new str[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(str,sizeof(str),UserPath,name); //ERROR LINE
    return str;
}
Define:

pawn Код:
#define UserPath "Users/%s.ini
With regards Scrillex!


Re: Need help.. Something not right with user register system. - Aliassassin123456 - 28.07.2013

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