Quote:
Originally Posted by SpiderPork
pawn Код:
if (strcmp("/9mm", cmdtext, true, 10) == 0) { if(GetPlayerMoney(playerid) => 150) { GivePlayerWeapon(playerid, 22, 500); GivePlayerMoney(playerid, b-150); SendClientMessage(playerid, COLOR_ADMIN, "*** You have bought a 9MM Pistol - Cost: $150"); } [u][color=red]else[/color][/u] return SendClientMessage(playerid, YOUR_COLOR, "Insufficient funds."); return 1; }
|
Else what?
You must type else if money under 150, THEN, return SendClientMessage(playerid, YOUR_COLOR, "Insufficient funds.");