Problem loading a number using Y_ini - 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: Problem loading a number using Y_ini (
/showthread.php?tid=562510)
Problem loading a number using Y_ini -
Alvin007 - 09.02.2015
I have this, declared on the top.
PHP код:
new cNum;
INI:ABankNum[NextBNumber](name[], value[])
{
INI_Int("CurrentCardNum",cNum);
return 0;
}
And this is used when the player uses a certain command.
So
PHP код:
INI_Load("ABankNum.ini");
GivePlayerMoney(playerid,-500);
BankInfo[playerid][CardNumber]=cNum; // Instead of "1000" in BankInfo[playerid][CardNumber] ( which is loaded from ABankNum.inu) I find the number "0"
new INI:cInfo=INI_Open("ABankNum.ini");
INI_SetTag(cInfo,"NextBNumber");
INI_WriteInt(cInfo,"CurrentCardNum",cNum+1);
INI_Close(cInfo);
That's what i find in the ABankNum.ini
Quote:
[NextBNumber]
CurrentCardNum = 1000[NextBNumber]
CurrentCardNum = 1
|
Help?
Re : Problem loading a number using Y_ini -
Alvin007 - 09.02.2015
Bum please ..