SA-MP Forums Archive
Help with admin - 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: Help with admin (/showthread.php?tid=416331)



Help with admin - DerickClark - 16.02.2013

It's not showing in scriptfiles.like dis Admin [level number]
Код:
format(file,sizeof(file),"scriptfiles/Users/%s.txt",n);



Re: Help with admin - park4bmx - 16.02.2013

not enough info shown!

Like is the file properly closed after being wrighten ?

Also is the string variable called "n" ?

Also the format should be like this
pawn Код:
new pNamer[MAX_PLAYER_NAME];GetPlayerName(playerid,pNamer,sizeof pNamer);
format(file,sizeof(file),"/Users/%s.txt",pNamer);//this will get the "playerid"'s name



Re: Help with admin - DerickClark - 16.02.2013

i got it from here:
https://sampforum.blast.hk/showthread.php?tid=174575

But it not showing
scriptfiles in there.