12.04.2014, 07:38
Код:
error 025: function heading differs from prototype warning 213: tag mismatch error 024: "break" or "continue" is out of context
Код:
public OnPlayerClickMap(playerid, FLoat:fX, Float:fY, Float:fZ) { if(tele_Enabled[playerid] == 1 && PlayerInfo[playerid][pAdmin] >= 2) { SetPlayerPosFindZ(playerid, fX, fY, fZ); } else break; return 1; } CMD:maptp(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, WHITE, "You cannot use this command!"); if(tele_Enabled[playerid] == 0) { tele_Enabled[playerid] = 1; SendClientMessage(playerid, WHITE, "You have enabled map teleporting."); } else { tele_Enabled[playerid] = 0; SendClientMessage(playerid, WHITE, "You have disabled map teleporting."); } return 1; }
Код:
public OnPlayerClickMap(playerid, FLoat:fX, Float:fY, Float:fZ) SetPlayerPosFindZ(playerid, fX, fY, fZ); else break;