on money
#5

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
Reply


Messages In This Thread
on money - by Sin- - 06.06.2009, 11:03
Re: on money - by [HiC]TheKiller - 06.06.2009, 11:57
Re: on money - by Luka P. - 06.06.2009, 12:12
Re: on money - by Correlli - 06.06.2009, 12:40
Re: on money - by Luka P. - 06.06.2009, 12:42
Re: on money - by Sin- - 06.06.2009, 12:43
Re: on money - by Luka P. - 06.06.2009, 12:49
Re: on money - by Correlli - 06.06.2009, 12:50
Re: on money - by Luka P. - 06.06.2009, 12:53
Re: on money - by Correlli - 06.06.2009, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)