Quote:
|
Originally Posted by Don Correlli
Quote:
|
Originally Posted by °Luka°
It is GetPlayerMoney,not GetPlayerCash,so here it is if you want to use to more things in your script
pawn Код:
new playermoney = GetPlayerMoney(playerid); // now you can use it where you want in your script,you don`t must always write GetPlayerMoney blah blah
if(playermoney =< /* price you want */) { //effect (Player can`t afford) } else { //effect (Player can afford) }
|
if playermoney is = or < he can't afford, why he can't afford if his money is [b]same[b] as price?
pawn Код:
if(GetPlayerMoney(playerid) >= PRICE) { // put your code (can afford) } else { / put your code (can't afford) }
|
You make same code lol! But you are using first if playermoney is same or higher than a player cash