SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/02/2015, 03:43 PM   #1
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 9
Default Problem loading a number using Y_ini

I have this, declared on the top.
PHP Code:
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 Code:
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?
__________________
Alvin007 is offline   Reply With Quote
Old 09/02/2015, 06:52 PM   #2
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 9
Default Re : Problem loading a number using Y_ini

Bum please ..
__________________
Alvin007 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Y_INI saving/loading problem Blademaster680 Scripting Help 5 23/05/2014 07:38 PM
Y_INI Loading Problem zDivine Scripting Help 0 23/04/2013 10:33 PM
Problem with Y_INI saving and loading mSlat3r Scripting Help 15 07/11/2012 10:53 PM
Y_Ini problem with loading kizla Scripting Help 1 18/10/2012 01:57 PM
Y_INI Loading problem Jarnu Scripting Help 15 24/09/2012 06:46 AM


All times are GMT. The time now is 04:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.