21.12.2012, 19:27
Hello.
This is my code:
What I want is this to display a message like:
"Your total tax was <tax>"
I am not sure how to use %i or %s whatever, so please help me.
Thank you very much.
This is my code:
Код:
public OnPlayerDeath(playerid, killerid, reason) { new wantedlevel; wantedlevel = GetPlayerWantedLevel(playerid); new moneyamount; moneyamount = GetPlayerMoney(playerid); new tax; tax = (wantedlevel*((5/100)*moneyamount))/10+random(1000); GivePlayerMoney(playerid,tax); return 1; }
"Your total tax was <tax>"
I am not sure how to use %i or %s whatever, so please help me.
Thank you very much.