ConvertPrice bug ?
#5

Quote:
Originally Posted by [LvZ]Free
Посмотреть сообщение
Shouldn't you give ConvertPrice(cash[playerid] instead cash[playerid] on GivePlayerMoney(playerid,cash[playerid]); ?
No, GivePlayerMoney accepts integer not formatted strings.

On-Topic: You're printing an integer (given the flag: %d), change that to %s as the stock function returns a string.
pawn Код:
"[Info] You get %s!"
One more thing, if the array stores an integer, 1000. Why store it as an array? You're wasting memory on something that can essentially be a single variable.
Reply


Messages In This Thread
ConvertPrice bug ? - by Sanady - 18.10.2014, 12:24
Re: ConvertPrice bug ? - by zaibaslr2 - 18.10.2014, 12:29
Re: ConvertPrice bug ? - by [LvZ]Free - 18.10.2014, 12:29
Re: ConvertPrice bug ? - by cessil - 18.10.2014, 12:31
Re: ConvertPrice bug ? - by Neil. - 18.10.2014, 12:33
Re: ConvertPrice bug ? - by Yera96 - 18.10.2014, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)