Use the playerґs name as a dini file? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Use the playerґs name as a dini file? (
/showthread.php?tid=100645)
Use the playerґs name as a dini file? -
TheFailFactor - 05.10.2009
Heres my problem..
im trying to create some simple stats system saving Spawnlocation, a special permission and his/her vehicles. But i even fail at the beginning D:
Iґve done this:
Код:
new playername[MAX_PLAYER_NAME], string[48]
if(dini_Exists(PlayerFile))
{
// the file "file.ini" exists in the folder "folder"
}
else
{
// the file "file.ini" doesn't exist in the folder "folder"
}
Playerfile is definied: #define PlayerFile "users/%s.ini"
I want a file with the userґs name created at OnPlayerConnect. What am I doing wrong? D: