file creation not working
#4

If you are using dini, you can do something like this under your register command:


Код:
     new file[128];
     new string[128];
     new name[MAX_PLAYER_NAME];
     GetPlayerName(playerid, name, sizeof(name));
     format(file,sizeof(file),"/Accounts/%s.ini",name); // you need a folder "Accounts" in script files
     if(!fexist(file))
     {
	dini_Create(file);
       //your stat saving variables here
     }
Reply


Messages In This Thread
file creation not working - by DowNlOaD_ - 06.06.2010, 18:55
Re: file creation not working - by Stepashka - 06.06.2010, 19:27
Re: file creation not working - by DowNlOaD_ - 06.06.2010, 19:55
Re: file creation not working - by DJDhan - 06.06.2010, 20:00
Re: file creation not working - by DowNlOaD_ - 06.06.2010, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)