Help in CMD's
#1

Look at those :

Quote:

}
if (strcmp("/Buyhealth", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 100.0);
GivePlayerMoney(playerid, -10000);
return 1;
}
if (strcmp("/BuyArmor", cmdtext, true, 5) == 0)
{
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, -10000);
return 1;
}

Those 2 CMD's are working fine , but the problem that if you have 0 and you do /buyarmor - /buyhealth , you get -10000 , i want that if you have less than 10k it say : Error : You Don't have Enough Cash



And also if a player do /buyarm - /buyarmoooooooor or something like this it also give him armor for 10k , but i want that ONLY /buyarmor works , any help ?
Reply


Messages In This Thread
Help in CMD's - by Mr.Black - 29.06.2011, 07:13
Re: Help in CMD's - by PrawkC - 29.06.2011, 07:22
Re: Help in CMD's - by Mr.Black - 29.06.2011, 07:29
Re: Help in CMD's - by HyperZ - 29.06.2011, 07:39
Re: Help in CMD's - by Mr.Black - 29.06.2011, 07:41
Re: Help in CMD's - by HyperZ - 29.06.2011, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)