CMD:felmond(playerid, params[]){if(GetPlayerTeam(playerid) == 0) return SendClientMessage(playerid, 0xFF0000AA, \"Nincs munkád!\"); if(GetPlayerTeam(playerid) == 1) {KillTimer(tatimer);}if(GetPlayerTeam(playerid) == 2){KillTimer(mtimer);}if(GetPlayerTeam(playerid) == 3){KillTimer(autimer);}SetPlayerTeam(playerid, 0);SendClientMessage(playerid, SARGA, \"Felmondtál az állásodból!\");GameTextForPlayer(playerid, \"~h~~l~Felmondtál!\", 3000, 4);SetPlayerPos(playerid, -249.8684,2609.4885,62.8582);return 1;}
CMD:lecsuk(playerid, params[]){if(IsPlayerLAdmin(playerid)){new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];if(sscanf(params, \"uds\", giveplayerid, ido, indok)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [perc] [indok]\");if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");GetPlayerName(playerid, name, sizeof(name));GetPlayerName(giveplayerid, name2, sizeof(name2));format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Börtönbe zárta %s -t {b22222}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok);SendClientMessageToAll(0xB3D5B2AA,string);ido *= 60000;SetTimerEx(\"Bortonido\",ido,false,\"d\",giveplayerid);SetPlayerPos(giveplayerid,2199.7134,1224.0686,10.8203);SetPlayerInterior(giveplayerid, 0);}else{SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");}return 1;}forward Bortonido(playerid);public Bortonido(playerid){SpawnPlayer(playerid);return 1;}
#include <a_samp>#include <zcmd> CMD:felmond(playerid, params[]){if(!IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z)) return SendClientMessage(playerid, szin, \"Itt ezt nem használhatod!\");if(GetPlayerTeam(playerid) == 0) return SendClientMessage(playerid, 0xFF0000AA, \"Nincs munkád!\"); if(GetPlayerTeam(playerid) == 1) {KillTimer(tatimer);}if(GetPlayerTeam(playerid) == 2){KillTimer(mtimer);}if(GetPlayerTeam(playerid) == 3){KillTimer(autimer);}SetPlayerTeam(playerid, 0);SendClientMessage(playerid, SARGA, \"Felmondtál az állásodból!\");GameTextForPlayer(playerid, \"~h~~l~Felmondtál!\", 3000, 4);SetPlayerPos(playerid, -249.8684,2609.4885,62.8582);return 1;}
public OnPlayerConnect(playerid){ SetPVarInt(playerid, \"Lecsukott\", 0); return 1;} CMD:lecsuk(playerid, params[]){if(IsPlayerLAdmin(playerid)){new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];if(sscanf(params, \"uds\", giveplayerid, ido, indok)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [perc] [indok]\");if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");GetPlayerName(playerid, name, sizeof(name));GetPlayerName(giveplayerid, name2, sizeof(name2));format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Börtönbe zárta %s -t {b22222}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok);SendClientMessageToAll(0xB3D5B2AA,string);ido *= 60000;SetTimerEx(\"Bortonido\",ido,false,\"d\",giveplayerid);SetPlayerPos(giveplayerid,2199.7134,1224.0686,10.8203);SetPlayerInterior(giveplayerid, 0); SetPVarInt(playerid, \"Lecsukott\", 1);}else{SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");}return 1;}forward Bortonido(playerid);public Bortonido(playerid){SpawnPlayer(playerid); return 1;}
if(GetPVarInt(playerid, \"Lecsukott\")) == 0){//Függvények}
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\EMR.pwn(744) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\EMR.pwn(744) : warning 215: expression has no effectE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\EMR.pwn(744) : error 001: expected token: \";\", but found \")\"E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\EMR.pwn(744) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\EMR.pwn(744) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
if(GetPVarInt(playerid, \"Lecsukott\")) == 0);
if(GetPVarInt(playerid, \"Lecsukott\")) == 0)
if(GetPVarInt(playerid, \"Lecsukott\") == 0)