INI_Int not reading. - 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)
+--- Thread: INI_Int not reading. (
/showthread.php?tid=554952)
INI_Int not reading. -
Ahmad45123 - 05.01.2015
I am trying to read a ini file using y_ini.
Code:
pawn Код:
/* CODE */
new val;
INI_Int("Origin" , PlayerInfo[playerid][pOrigin]);
INI_Int("Muted" , PlayerInfo[playerid][pMuted]);
INI_Int("Respect" , PlayerInfo[playerid][pExp]);
INI_Int("Money" , val); GivePlayerCash(playerid, val); //This is not working...
INI_Int("Bank" , PlayerInfo[playerid][pAccount]);
INI_Int("Crimes" , PlayerInfo[playerid][pCrimes]);
/* Another Code */
All of the code is working except the money one, For some reason it makes the money to 0.
Any help ?
Re: INI_Int not reading. -
Divergent - 05.01.2015
Check the actual file and see if it's saving properly.
Re: INI_Int not reading. -
Ahmad45123 - 05.01.2015
Quote:
Originally Posted by Divergent
Check the actual file and see if it's saving properly.
|
Already checked it, Its saving properly.
Re: INI_Int not reading. -
xVIP3Rx - 05.01.2015
Alright, then look for any codes that saves money, maybe you're saving it at a wrong time.(after resettingmoney for example)
and you could add a debug to know what does "GivePlayerCash" outputs before it saves
Re: INI_Int not reading. -
Ahmad45123 - 05.01.2015
Quote:
Originally Posted by ******
You can't do that - load the data THEN use it.
|
You mean load it to a global var, then execute the GivePlayerCash function anywhere else ?