if(strcmp(cmd, \"/asay\", true) == 0){ if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] <= 1) { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy admin!\"); return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, \"HASZNÁLAT: /asay [szöveg]\"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string),\"* Moderátor %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 1) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Moderátor %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 2) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Admin %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 3) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Admin %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 4) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* FõAdmin %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 5) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Scripter %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 6) SendClientMessageToAll(COLOR_LIGHTBLUE1, string);}return 1;}
if(strcmp(cmdtext, \"/asay\", true) == 0){ new Message[128], Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(string, sizeof(string), \"Admin %s: %s\", Name, cmdtext[5]); SendClientMessageToAll(0xFFAAFFAA, string); // 0xFFAAFFAA helyett írj be valami színt.. return 1;}
C:\\Documents and Settings\\Rendszergazda\\Asztal\\Server\\gamemodes\\VFCRPv1.5.pwn(31523) : error 003: declaration of a local variable must appear in a compound blockC:\\Documents and Settings\\Rendszergazda\\Asztal\\Server\\gamemodes\\VFCRPv1.5.pwn(31523) : error 017: undefined symbol \"Message\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\Server\\gamemodes\\VFCRPv1.5.pwn(31523) : error 001: expected token: \";\", but found \"]\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\Server\\gamemodes\\VFCRPv1.5.pwn(31523) : 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 (PlayerInfo[playerid][pAdmin] <= 1)
if(strcmp(cmdtext, \"/asay\", true) == 0){ if (!PlayerInfo[playerid][pAdmin] <= 1) return SendClientMessage(playerid, 0xFF0000EE, \"HIBA: Nem vagy admin.\"); new Message[128], Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(Message, sizeof(Message), \"Admin %s: %s\", Name, cmdtext[5]); SendClientMessageToAll(0xFFAAFFAA, Message); // 0xFFAAFFAA helyett írj be valami színt.. return 1;}
if(strcmp(cmdtext, \"/asay\", true) == 0){ if (!PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, 0xFF0000EE, \"HIBA: Nem vagy admin.\"); new Message[128], Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(Message, sizeof(Message), \"Admin %s: %s\", Name, cmdtext[5]); SendClientMessageToAll(0xFFAAFFAA, Message); // 0xFFAAFFAA helyett írj be valami színt.. return 1;}
if(strcmp(cmdtext, \"/asay\", true) == 0){ if (!PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, 0xFF0000EE, \"HIBA: Nem vagy admin.\"); new Message[128], Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(Message, sizeof(Message), \"Admin %s: %s\", Name, cmdtext[5]); // EZZZZ SendClientMessageToAll(0xFFAAFFAA, Message); // 0xFFAAFFAA helyett írj be valami színt.. return 1;}
if(strcmp(cmd, \"/report\", true) == 0 || strcmp(cmd, \"/panasz\", true) == 0){ if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLD: /report [panasz]\"); return 1; } format(string, sizeof(string), \" %s panasza: %s\", sendername, (result));//EZZZ ABroadCast(COLOR_ASKQ,string,1); SendClientMessage(playerid, COLOR_ASKQ, \"Panaszod Elküldve Az Adminoknak.\"); } return 1;}
if(strcmp(cmd, \"/asay\", true) == 0) { if (!PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, 0xFF0000EE, \"HIBA: Nem vagy admin.\"); if(!IsPlayerConnected(playerid)) return 1; GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) return SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLD: /asay [szöveg]\"); format(string, sizeof(string), \"Admin %s : %s\", sendername, (result));//EZZZ // ABroadCast(COLOR_ASKQ,string,1); // Ezt nem tudom mi.... SendClientMessageToAll(COLOR_ASKQ, string); return 1; }
if (!PlayerInfo[playerid][pAdmin] <1) return SendClientMessage(playerid, 0xFF0000EE, \"HIBA: Nem vagy admin.\"); if(!IsPlayerConnected(playerid)) return 1;
if(strcmp(cmd, \"/asay\", true) == 0) { if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, 0xFF0000EE, \"HIBA: Nem vagy admin.\"); if(!IsPlayerConnected(playerid)) return 1; GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) return SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLD: /asay [szöveg]\"); format(string, sizeof(string), \"Admin %s : %s\", sendername, (result));//EZZZ // ABroadCast(COLOR_ASKQ,string,1); // Ezt nem tudom mi.... SendClientMessageToAll(COLOR_ASKQ, string); return 1; }