if (strcmp("/jetpack", cmdtext, true, 10) == 0) { if GetPlayerScore(playerid) > 3); { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); } else SendClientMessage(playerid, 0xFFFFFF, "you don't have 3 score"); return 1;
error 001: expected token: "*then", but found ")" error 029: invalid expression, assumed zero warning 215: expression has no effect error 029: invalid expression, assumed zero
if (strcmp("/jetpack", cmdtext, true, 10) == 0) { if (GetPlayerScore(playerid) > 3) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); } else { SendClientMessage(playerid, 0xFFFFFFFF, "you don't have 3 score"); } return 1; }
Код:
if (strcmp("/jetpack", cmdtext, true, 10) == 0) { if (GetPlayerScore(playerid) > 3) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); } else { SendClientMessage(playerid, 0xFFFFFFFF, "you don't have 3 score"); } return 1; } |
if(strcmp("/jetpack", cmdtext, true) == 0)
{
if(GetPlayerScore(playerid) >= 3)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "you don't have 3 score");
}
return 1;
}