18.12.2014, 06:04
I don't see anything wrong here.
Код:
CMD:stearth(playerid, params[]) { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid, -1, "{00CC00}[SUCCESS]: You have stopped the earthquake."); DestroyObject(playerid); SetPlayerDrunkLevel(playerid, 0); StopAudioStreamForPlayer(playerid); } else { SendClientMessage(playerid, -1, "{FF0000}ERROR: No earthquake going on now."); } else //<<< error 029: invalid expression, assumed zero { SendClientMessage(playerid, -1, "{FF0000}Only rcon admins can use this command!"); } return 1; }