06.06.2009, 12:12
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)
}