20.12.2013, 20:43
I come up with two errors now
(151) : error 036: empty statement
(156) : error 029: invalid expression, assumed zero
(151) : error 036: empty statement
(156) : error 029: invalid expression, assumed zero
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/heal", cmdtext, true, 10) == 0) { if( GetPlayerMoney( playerid ) < 250 ); // line 151 { SetPlayerHealth(playerid, 100); GivePlayerMoney(playerid, -250); } else // line 156 { SendClientMessage(playerid, 0xAA3333AA, "You don't have enough cash!"); } return 1; } }
Also, no idea what ternary operator is.