09.02.2015, 14:43
I have this, declared on the top.
And this is used when the player uses a certain command.
So
That's what i find in the ABankNum.ini
Help?
PHP код:
new cNum;
INI:ABankNum[NextBNumber](name[], value[])
{
INI_Int("CurrentCardNum",cNum);
return 0;
}
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);
Quote:
[NextBNumber] CurrentCardNum = 1000[NextBNumber] CurrentCardNum = 1 |