C:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : error 017: undefined symbol \"cmd_asay\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Rendszergazda\\Asztal\\FUN.pwn(516) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
CMD:asay(playerid, params[]){if (PlayerInfo[playerid][pAdmin] >= 1){new admiin[MAX_PLAYER_NAME];GetPlayerName(playerid,admiin,sizeof(admiin));new text[128];if(sscanf(params, \"s[128]\",text)) return SendClientMessage(playerid, 0xFFFFFFFF, \"Használat: /asay [szöveg]\");new kakak[128];format(kakak,sizeof kakak,\"(( Admin %s : %s ))\",admiin,text);SendClientMessageToAll(0xA10000AA,kakak);}SendClientMessage(playerid,COLOR_RED,\"Nem vagy admin!\");return 1;}
CMD:asay(playerid, params[]){ if (PlayerInfo[playerid][pAdmin] >= 1) { new admiin[MAX_PLAYER_NAME], kakak[128], text[128]; if(sscanf(params, \"s[128]\",text)) return SendClientMessage(playerid, 0xFFFFFFFF, \"Használat: /asay [szöveg]\"); GetPlayerName(playerid,admiin,sizeof(admiin)); format(kakak,sizeof kakak,\"(( Admin %s : %s ))\",admiin,text); SendClientMessageToAll(0xA10000AA,kakak); } else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy admin!\"); } return 1;}
#include < zcmd > megvolt?
CMD:asay(playerid, params[]){if (PlayerInfo[playerid][pAdmin] >= 1){new admiin[MAX_PLAYER_NAME];GetPlayerName(playerid,admiin,sizeof(admiin));new text[128];if(sscanf(params, \"s[128]\",text)) return SendClientMessage(playerid, 0xFFFFFFFF, \"Használat: /asay [szöveg]\");new kakak[128];format(kakak,sizeof kakak,\"(( Admin %s : %s ))\",admiin,text);SendClientMessageToAll(0xA10000AA,kakak);} else {SendClientMessage(playerid,COLOR_RED,\"Nem vagy admin!\");}return 1;}
Még mindig ugyan ezeket a hibákat írja.
Erre gondolsz?enum pInfo{ pAdmin,};
a vesszõ sem kell oda ha csak az admin van ott.