Problem with a string.. Saves d in front..
#1

Hello dear samp users.. I have a problem with my string saving..

Here it is how it saves..
pawn Код:
BankCardBNr = d22
BankCardPin = d168
Here is the random generation code..

pawn Код:
new  CardBNr[4], CardPin[5];
format(CardBNr, sizeof(CardBNr),"d%d%d", random(10), random(10), random(10), random(10));
                format(CardPin, sizeof(CardPin),"d%d%d%d", random(10), random(10),random(10), random(10), random(10));
Here is the saving:

pawn Код:
INI_WriteString(File,"BankCardBNr",CardBNr);
                INI_WriteString(File,"BankCardPin",CardPin);
With best regards Scrillex!
Reply


Messages In This Thread
Problem with a string.. Saves d in front.. - by Scrillex - 11.06.2015, 23:08
Re: Problem with a string.. Saves d in front.. - by Scrillex - 11.06.2015, 23:16
Re: Problem with a string.. Saves d in front.. - by Prokill911 - 12.06.2015, 01:58
Re: Problem with a string.. Saves d in front.. - by SickAttack - 12.06.2015, 02:12

Forum Jump:


Users browsing this thread: 1 Guest(s)