C:\\Users\\user\\Desktop\\Egyebek\\afterlife.pwn(38267) : error 036: empty statementC:\\Users\\user\\Desktop\\Egyebek\\afterlife.pwn(38308) : error 033: array must be indexed (variable \"PlayerInfo\")C:\\Users\\user\\Desktop\\Egyebek\\afterlife.pwn(38329) : warning 225: unreachable codePawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
if(strcmp(cmd, \"/PME\", true) == 0 || strcmp(cmd, \"/PM\", true) == 0);{ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: (/PM)E [playerid/PartOfName] [pme text]\"); return 1; } giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(!Admin(playerid, 1) && !Admin(giveplayerid, 1)) return Msg(playerid, \"Csak adminnak írhatsz!\"); if(AdminDuty[giveplayerid] != 1 && !Admin(playerid, 1)) return Msg(playerid, \"Õ nincs adminszolgálatban\"); 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, \"USAGE: (/pm)e [playerid/PartOfName] [pme text]\"); return 1; } if(PlayerInfo[playerid]== 0) format(string, sizeof(string), \"[%d]%s üzeni: %s\", playerid, sendername, (result)); else format(string, sizeof(string), \"[%d]%s üzeni: %s\", playerid, PlayerInfo[playerid], (result)); SendClientMessage(giveplayerid, COLOR_DBLUE, string); format(string, sizeof(string), \" Üzenet elküldve neki: [%d]%s.\", giveplayerid, giveplayer); SendClientMessage(playerid, COLOR_DBLUE, string); return 1; } } else { format(string, sizeof(string), \" Nem aktív játékos.\"); SendClientMessage(playerid, COLOR_GRAD1, string); }}return 1;}
if(strcmp(cmd, \"/PM\", true) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: (/PM)E [playerid/PartOfName] [pme text]\"); return 1; } giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(!Admin(playerid, 1) && !Admin(giveplayerid, 1)) return Msg(playerid, \"Csak adminnak írhatsz!\"); if(AdminDuty[giveplayerid] != 1 && !Admin(playerid, 1)) return Msg(playerid, \"Õ nincs adminszolgálatban\"); if(HidePM[giveplayerid] > 0 && !Admin(playerid, 1337)) return Msg(playerid, \"Üzeneted blokkolva a rendszer által!\"); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); 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_GRAD2, \"Használat: (/pm)e [playerid/PartOfName] [pme text]\"); return 1; } if(PlayerInfo[playerid][pHamisNev] == 0) format(string, sizeof(string), \"[%d]%s üzeni: %s\", playerid, sendername, (result)); else format(string, sizeof(string), \"%s üzeni: %s\", PlayerInfo[playerid][pHamisNev], (result)); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), \" Üzeneted neki: %s - %s\", giveplayer, (result)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } } else { format(string, sizeof(string), \" Nem aktív játékos.\"); SendClientMessage(playerid, COLOR_GRAD1, string); }}return 1;}
if(PlayerInfo[playerid][pHamisNev] == 0)
if(strcmp(cmd, \"/PM\", true) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: (/PM)E [playerid/PartOfName] [pme text]\"); return 1; } giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(!Admin(playerid, 1) && !Admin(giveplayerid, 1)) return Msg(playerid, \"Csak adminnak írhatsz!\"); if(AdminDuty[giveplayerid] != 1 && !Admin(playerid, 1)) return Msg(playerid, \"Õ nincs adminszolgálatban\"); if(HidePM[giveplayerid] > 0 && !Admin(playerid, 1337)) return Msg(playerid, \"Üzeneted blokkolva a rendszer által!\"); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); 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_GRAD2, \"Használat: (/pm)e [playerid/PartOfName] [pme text]\"); return 1; } format(string, sizeof(string), \"[%d]%s üzeni: %s\", playerid, sendername, (result)); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), \" Üzeneted neki: %s - %s\", giveplayer, (result)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } } else { format(string, sizeof(string), \" Nem aktív játékos.\"); SendClientMessage(playerid, COLOR_GRAD1, string); }}return 1;}