Slapped Together some Script and Im getting 3 Identical Errorrs,
#1

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.
Код:
enum PLAYER_MAIN {
    FACTION_RANK,
    CASH,
}

new PlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
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:
Код:
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;
}
}
Any Assistance, or New Code would be GREAT. Thanks for Reading
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)