[Help] Error 021: symbol already defined: "cmd_admin" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Error 021: symbol already defined: "cmd_admin" (
/showthread.php?tid=453767)
[Help] Error 021: symbol already defined: "cmd_admin" -
huynhxuanhieu - 26.07.2013
I Have This Problem !
Код:
C:\Documents and Settings\Administrator\Desktop\Roleplay\gamemodes\Roleplay.pwn(58964) : error 021: symbol already defined: "cmd_admin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Line :
Код:
CMD:a(playerid, params[]) {
return cmd_admin(playerid, params);
}
CMD:admin(playerid, params[]) {
if(PlayerInfo[playerid][pAdmin] >= 2) {
if(!isnull(params)) {
new
szMessage[128];
if(PlayerInfo[playerid][pAdmin] == 2) format(szMessage, sizeof(szMessage), "* Junior Admin %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] == 3) format(szMessage, sizeof(szMessage), "* General Admin %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] == 4) format(szMessage, sizeof(szMessage), "* Senior Admin %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] == 1337) format(szMessage, sizeof(szMessage), "* Head Admin %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] == 1338) format(szMessage, sizeof(szMessage), "* Admin Director %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] == 99999) format(szMessage, sizeof(szMessage), "* Executive Admin %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pSMod] == 1) format(szMessage, sizeof(szMessage), "* Senior Moderator %s: %s", GetPlayerNameEx(playerid), params);
else format(szMessage, sizeof(szMessage), "* Undefined Admin (%i) %s: %s", PlayerInfo[playerid][pAdmin], GetPlayerNameEx(playerid), params);
foreach(new i: Player)
{
if(PlayerInfo[i][pAdmin] >= 2)
{
SendClientMessage(i, COLOR_YELLOW, szMessage);
}
}
}
else SendClientMessageEx(playerid, COLOR_GREY, "Su dung: (/a)dmin [admin chat]");
}
return 1;
}
Help Please ?
Re: [Help] Error 021: symbol already defined: "cmd_admin" -
Necip - 26.07.2013
It means that you already have that command. Use Ctrl + F and type cmd:admin or cmd:a to find.
Re: [Help] Error 021: symbol already defined: "cmd_admin" -
JusstinRoller - 26.07.2013
PHP код:
CMD:a(playerid, params[]) return cmd_admin(playerid, params);Â
use this
Re: [Help] Error 021: symbol already defined: "cmd_admin" -
huynhxuanhieu - 26.07.2013
Thank You Guy ! I fixed that error ! Thank you so much
Re: [Help] Error 021: symbol already defined: "cmd_admin" -
JusstinRoller - 26.07.2013
are you vietnamese?
Re: [Help] Error 021: symbol already defined: "cmd_admin" -
huynhxuanhieu - 26.07.2013
Yes , I'm From Viet Nam ^^!~ Xin Chаo
Re: [Help] Error 021: symbol already defined: "cmd_admin" -
PaulCrouseVS - 24.06.2018
Thank you very much Bro, solved.