Multiple errors through out commands.. - 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: Multiple errors through out commands.. (
/showthread.php?tid=521238)
Multiple errors through out commands.. -
AMouldyLemon - 22.06.2014
pawn Код:
CMD:gmx(playerid, params[]);
{ //1643
if(MasterAccount[playerid][mSuperAdmin] || Character[playerid][cAdminLevel] >= 6)
{
SendRconCommand("gmx");
}
else return SendClientMessage(playerid, COLOR_DARKGREY, AdminOnly);
}
CMD:a(playerid, params[]);
{ //1653
if(MasterAccount[playerid][mSuperAdmin] || Character[playerid][cAdminLevel] >= 1)
{
new string[126];
if(isnull (params))
return SendClientMessage(playerid, COLOR_DARKGREY, "Usage: /a [Text]");
format(string, sizeof(string), "%s (%s): %s", cName(playerid, Character[cAdminLevel], params);
}
else return SendClientMessage(platerid, COLOR_DARKGREY, AdminOnly);
return 1;
}
pawn Код:
(1643) : error 055: start of function body without function header
(1644) : error 010: invalid function or declaration
(1648) : error 010: invalid function or declaration
(1650) : error 054: unmatched closing brace ("}")
(1653) : error 055: start of function body without function header
(1654) : error 010: invalid function or declaration
(1657) : error 010: invalid function or declaration
(1658) : error 010: invalid function or declaration
(1660) : error 021: symbol already defined: "format"
(1662) : error 010: invalid function or declaration
(1663) : error 010: invalid function or declaration
Help, I have no idea what these are D:
Re: Multiple errors through out commands.. -
AMouldyLemon - 22.06.2014
I fixed it, sorry.
Re: Multiple errors through out commands.. -
Konstantinos - 22.06.2014
Remove the semicolon from these:
pawn Код:
CMD:gmx(playerid, params[]);
// and
CMD:a(playerid, params[]);
EDIT: Oh, you just got it fixed.
Re: Multiple errors through out commands.. -
geohareas - 22.06.2014
EDIT: you fixed it so