SA-MP Forums Archive
I built a system based on variables and it has not been saved - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I built a system based on variables and it has not been saved (/showthread.php?tid=250761)



I built a system based on variables and it has not been saved - tal_peretz - 24.04.2011

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.


Re: I built a system based on variables and it has not been saved - tal_peretz - 24.04.2011

jump.. moved to page 2, pleaseeeee help


Re: I built a system based on variables and it has not been saved - tal_peretz - 24.04.2011

jump.. moved to page 2 AGAIN

nobody know


Re: I built a system based on variables and it has not been saved - 1337connor - 24.04.2011

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;
}



Re: I built a system based on variables and it has not been saved - tal_peretz - 24.04.2011

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 ??


Re: I built a system based on variables and it has not been saved - tal_peretz - 24.04.2011

Help ?


Re: I built a system based on variables and it has not been saved - tal_peretz - 24.04.2011

JUMP MOVED PAGE


Re: I built a system based on variables and it has not been saved - Steven82 - 24.04.2011

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

Nice to meet you, im the asshole steven.


Re: I built a system based on variables and it has not been saved - tal_peretz - 26.04.2011

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