COMMAND:me(playerid,params[]){// Setup local variablesnew Msg[128], Message[128], Name[24];// Send the command to all admins so they can see itSendAdminText(playerid, \"/me\", params);// Check if the player has logged inif (APlayerData[playerid][LoggedIn] == true){if (sscanf(params, \"s[128]\", Message)) SendClientMessage(playerid, 0xFF0000AA, \"Usage: \\\"/me <action>\\\"\");else{ // Check if the player isn\'t muted if (APlayerData[playerid][Muted] == false) { GetPlayerName(playerid, Name, sizeof(Name)); format(Msg, sizeof(Msg), \"* %s: %s\", Name, Message); SendClientMessageToAll(0xFFFF00AA, Msg); } else SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}Nem írhatsz,mert valaki elnémított.\");}}else return 0;// Let the server know that this was a valid commandreturn 1;}
C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(173) : error 029: invalid expression, assumed zeroC:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(173) : error 017: undefined symbol \"cmd_me\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(173) : error 029: invalid expression, assumed zeroC:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(173) : 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(!strcmp(cmdtext, \"/me\", true, 3)) // 3 is the length of /me { if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, \"USAGE: /me [action]\"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), \"* %s %s\", str, cmdtext[4]); SendClientMessageToAll(0xFFFF00AA, str); return 1; }
C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(192) : error 017: undefined symbol \"cmd\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(199) : error 017: undefined symbol \"cmd\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(207) : error 017: undefined symbol \"cmd\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(215) : error 017: undefined symbol \"cmd\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(217) : error 017: undefined symbol \"idx\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(223) : error 017: undefined symbol \"giveplayerid\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(225) : error 017: undefined symbol \"idx\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(230) : error 017: undefined symbol \"moneys\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(235) : error 017: undefined symbol \"giveplayerid\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(236) : error 017: undefined symbol \"giveplayerid\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(236) : error 017: undefined symbol \"giveplayer\"C:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(236) : error 029: invalid expression, assumed zeroC:\\DOCUME~1\\szabi\\Asztal\\SZERVER\\GAMEMO~1\\lvdm.pwn(236) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 13 Errors.
CMD:me(playerid, params[]){ if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD1, \"Használat.: /me [cselekvés]\"); new string[128], pName[128 char] ; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"* %s %s\", pName, params); return SendClientMessageToAll(COLOR_ME, string);}
OnPlayerCommandText
if(strcmp(cmd, \"/me\", true) == 0) { if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD1, \"Használat.: /me [cselekvés]\"); new string[128], pName[128 char] ; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"* %s %s\", pName, params); return SendClientMessageToAll(COLOR_ME, string);}
Lehet, hogy egy hülye kérdést fogok feltenni, de amikor beraktad valamelyik parancsot ami benne volt a modban parancs azt kitörölted?
CMD:me(playerid, params[]){ if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD1, \"Használat.: /me [cselekvés]\"); new string[128], pName[128 char] ; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"* %s %s\", pName, params); SendClientMessageToAll(COLOR_ME, string); return 1;}