27.01.2010, 01:08
hey there i need help withsomething i have this code that allows me to buy some stuff but each time i try to buy it makes random amounts of money go so like iv made it go like
if(cash >= 50)
{
GivePlayerCash(playerid,583493);
}
if(cash >= 100)
{
GivePlayerCash(playerid,5843493);
}
so when i whent to go over 50 but under a 100 it sometimes dose the under 50 one so like i need a way to range it between 50 to 0 and 100 to 5 so if someone could help that would be great
if(cash >= 50)
{
GivePlayerCash(playerid,583493);
}
if(cash >= 100)
{
GivePlayerCash(playerid,5843493);
}
so when i whent to go over 50 but under a 100 it sometimes dose the under 50 one so like i need a way to range it between 50 to 0 and 100 to 5 so if someone could help that would be great