01.07.2013, 23:19
Ok, so i have it set up, to where if you don't have a certain amount of money, the sale shouldn't go threw, but it does. What am i doing wrong here?
Код:
case 0:
{
if(AC_GetPlayerMoney(playerid < 2000))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You do not have enough money!");
return 1;
}
else
{
SetPlayerArmour(playerid, 100);
GivePlayerMoney(playerid, -2000);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have purchased Armor!");
}
return 1;
}


Sorry if it fails.