Command bug
#8

Quote:
Originally Posted by Yaa
Посмотреть сообщение
use this

PHP код:
GivePlayerMoney(playerid,GetPlayerMoney(playerid)-amount);
GivePlayerMoney(id,amount); 
This is not going to work as you are giving the player as much money as he had before subtracted by the amount. So like let's say player has $5000, the amount is $500, means you are giving him $4500 and he has $9500 in total now. So basically if you want to use it you need to reset player's money first, but it's just easier to do -amount. Also SickAttack already gave him a working code.

EDIT: SickAttack replied before me lol.
Reply


Messages In This Thread
Command bug - by Mijata - 16.11.2016, 17:49
Re: Command bug - by DTV - 16.11.2016, 19:18
Re: Command bug - by Mijata - 17.11.2016, 18:06
Re: Command bug - by SickAttack - 17.11.2016, 18:17
Re: Command bug - by Yaa - 17.11.2016, 18:35
Re: Command bug - by SickAttack - 17.11.2016, 18:37
Re: Command bug - by oMa37 - 17.11.2016, 18:37
Re: Command bug - by GoldenLion - 17.11.2016, 18:39
Re: Command bug - by SickAttack - 17.11.2016, 18:41
Re: Command bug - by GoldenLion - 17.11.2016, 18:44

Forum Jump:


Users browsing this thread: 3 Guest(s)