[Tutorial] Saving positions on GMX
#5

Quote:
Originally Posted by Gumica
Посмотреть сообщение
Код:
: error 017: undefined symbol "UserPath"
pawn Код:
new INI:File = INI_Open(UserPath(playerid)); //Opens the file.
Can you explain this better?
I recommend reading Kush's tutorial.

pawn Код:
#define PATH "/Users/%s.ini"
pawn Код:
stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}
Reply


Messages In This Thread
Saving positions on GMX - by JhnzRep - 19.02.2012, 05:13
Re: Saving positions on GMX - by Gumica - 19.02.2012, 09:18
Re: Saving positions on GMX - by ReneG - 19.02.2012, 11:53
Re: Saving positions on GMX - by JhnzRep - 19.02.2012, 13:00
Re: Saving positions on GMX - by JhnzRep - 19.02.2012, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)