I built a system based on variables and it has not been saved
#1

Hey, when the variable change i did like this -

PHP код:
FileL2[playerid][Clock2] = 1
and in OnPlayerDisConnect -

PHP код:
dini_IntSet(GetYr(playerid),"Clock",FileL2[playerid][Clock2]);
FileL2[playerid][Clock2] = 0
and it's not saving .. why ?

* i checked in GetYr everything ok.. and in the variable to.
Reply
#2

jump.. moved to page 2, pleaseeeee help
Reply
#3

jump.. moved to page 2 AGAIN

nobody know
Reply
#4

Is GetYr(playerid)
pawn Код:
stock GetYr(playerid)
{
     new string[128];
     format(string,sizeof(string),"%s.ini",pName(playerid));
     return string;

     
}
stock pName(playerid)
{
     new name[MAX_PLAYER_NAME];
     GetPlayerName(playerid,name,sizeof(name));
     return name;
}
Reply
#5

PHP код:
stock GetYr(playerid)
{
new 
Yr[100],Name[24];
GetPlayerName(playerid,Name,24);
format(Yrsizeof(Yr), "Yr/Users/%s.ini"Name);
return 
Yr;

yes it's good ...


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

someone told me to do like this -

PHP код:
new String2[256];
format(String2,256,"%d",FileL2[playerid][Clock2]);
dini_Set(GetYr(playerid),"Clock",String2);
FileL2[playerid][Clock2] = 0
and it's work, but why ??
Reply
#6

Help ?
Reply
#7

JUMP MOVED PAGE
Reply
#8

ONLY FUCKING BUMP EVERY 48 HRS YOU DUMBASS...read the rules next time.

Nice to meet you, im the asshole steven.
Reply
#9

sorry i didn't know... now it's 48 hours, someone can help me ? maybe because i close the server and not exactly exit?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)