30.05.2012, 16:34
I`m trying to do the user path on one folder like this
/%s/%s.ini
So it needs to save it like
I tryed to do like this
But i have an error
error 012: invalid function call, not a valid address
Line:
And #define PATH "/%s/%s.ini" didn`t work becouse this function has just one "playername"
/%s/%s.ini
So it needs to save it like
pawn Код:
TzAkS //folder
TzAkS.ini //file
pawn Код:
new file[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(file, sizeof(file), "/%s/%s.ini", pname, pname);
error 012: invalid function call, not a valid address
Line:
pawn Код:
INI_ParseFile(file(playerid), "LoadData_%s", .bExtra = true, .extra = playerid);