Jump to content
  • 0

pomoc Nezapíše udaje


Guest SpiRinG

Dotaz

Ahojte, mám takýto problém.

Vytvori mi to súbor z menom ale nič nezapíše.

Neviem prísť nato prečo.

Hore v móde definena FILE

Register

 dini_Create(file);
    print("CreateFile");
 dini_IntSet(file, "Password", udb_hash(inputtext));
 print("Pass");
 dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
 print("AL");
 dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 500);
 print("Money");
 dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
 print("Score");
 dini_IntSet(file, "Job",PlayerInfo[playerid][pJob] = 0);
 print("Job");

OnPlayerDisconnect

	if(gPlayerLogged[playerid] == 1)
{
print("Ukladanie");
	dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
	dini_IntSet(file, "Money", PlayerInfo[playerid][pCash]);
	dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
	dini_IntSet(file, "Skin",GetPlayerSkin(playerid));
	dini_IntSet(file, "Job",Job[playerid]);
}

Server Log

[22:28:38] CreateFile
[22:28:38] Pass
[22:28:38] AL
[22:28:38] Money
[22:28:38] Score
[22:28:38] Job
[22:29:17] Ukladanie

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

nerozeznáš rozdil od dini a dof2?

dini_IntSet(file, "Score", PlayerInfo[p

Vypadá to na dof2 ?

 

Pokiaľ neviete, že existuje aj niečo také:

 

#define dini_Exists DOF2_FileExists

#define dini_Remove DOF2_RemoveFile

#define dini_Create DOF2_CreateFile

#define dini_Set DOF2_SetString

#define dini_Get DOF2_GetString

#define dini_IntSet DOF2_SetInt

#define dini_Int DOF2_GetInt

#define dini_BoolSet DOF2_SetBool

#define dini_Bool DOF2_GetBool

#define dini_FloatSet DOF2_SetFloat

#define dini_Float DOF2_GetFloat

#define dini_Unset DOF2_Unset

#define dini_Isset DOF2_IsSet

#define dini_Write DOF2_Exit

 

tak radšej ticho :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...