09.12.2010, 01:34
Hey Guys its me Again. Im trying to Create a Code that will save using Dini so when My server restarts, the Info is Restored.
Now, This is my Enum Code.
And Im trying to make it Save Automaticly, and after having a look at a few Dini Tutorials I Slapped together a Crap code in the Hope it will work.
It didnt.
This is the Code I Mashed onto Pawno:
Any Assistance, or New Code would be GREAT. Thanks for Reading
Now, This is my Enum Code.
Код:
enum PLAYER_MAIN { FACTION_RANK, CASH, } new PlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
It didnt.
This is the Code I Mashed onto Pawno:
Код:
public OnPlayerConnect(playerid) { new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); format(file,sizeof(file),PlayerFile,Name); if(!dini_Exists(file)) { dini_Create(file); dini_Set(file,"FACTION_RANK",FACTION_RANK); dini_Set(file,"CASH",CASH); return 1; } }