[Tutorial] Advanced YINI BankSystem(DataBase+Timers explanations)!!!
#5

Quote:
Originally Posted by TaLhA XIV
Посмотреть сообщение
I knew everything about this ,but I didn't knew that it was an advanced tutorial,sorry,I thought that you were trying to give this tutorial to newbies, anyways nice tutorial keep it up.This will help more people except newbies

One more thing that I wanted a explanation on this part,and how you edit this in the following codes.

pawn Код:
new cNum;//the variable to store the card number in
INI:ABankNum[NextBNumber](name[], value[])
{
   INI_Int("CurrentCardNum",cNum);//the storage
   return 0;
}
That's the way to work with an INI file that doesn't have any parametres that are player-related.Basically,I only want to store a number into that file,increment it when a player buys a card,and read the number from the file.I use the cNum variable to store the number that is readen FROM the file(ABankNum.ini),then I save it into the player's bank data(BankInfo[playerid][CardNumber]).After that I increment the number,because if the current player has the card number 1005,the next player will have the card number 1006.To load a SIMPLE INI file,you just need the function
pawn Код:
INI_Load(FileName.ini);
Reply


Messages In This Thread
Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Cjgogo - 27.08.2012, 13:29
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by TaLhA XIV - 27.08.2012, 15:30
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Cjgogo - 27.08.2012, 16:33
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by TaLhA XIV - 27.08.2012, 21:27
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Cjgogo - 28.08.2012, 06:42
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by TaLhA XIV - 28.08.2012, 16:12
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by SportLT - 28.08.2012, 19:10
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by TaLhA XIV - 28.08.2012, 23:33
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Devilxz97 - 29.08.2012, 00:12
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Cjgogo - 29.08.2012, 07:30
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by romas3110 - 29.08.2012, 08:39
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Coder_ - 29.08.2012, 19:27
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Cjgogo - 30.08.2012, 07:46
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by TaLhA XIV - 30.08.2012, 17:05
Re: Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Cjgogo - 03.02.2015, 13:29
Re : Advanced YINI BankSystem(DataBase+Timers explanations)!!! - by Alvin007 - 06.02.2015, 22:33

Forum Jump:


Users browsing this thread: 1 Guest(s)