dcmd error - 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: dcmd error (
/showthread.php?tid=460010)
dcmd error -
Thundey - 25.08.2013
hey there ,
i got this error when trying to add /clearchat command and i think the /cc command is perfect...
Quote:
dcmd_cc(playerid,params[])
{
if(Accountinfo[playerid][aLevel] < 3)
return SendClientMessage(playerid, COLOR_RED, "AdminLevel 3 needed for this command!");
for(new i = 0; i < 100; i++)
{
SendClientMessageToAll(0x00000000, " ");
}
return 1;
}
|
Here is the error i get.
Quote:
C:\Users\USER\Desktop\CnR\gamemodes\CNR.pwn(9626) : error 017: undefined symbol "Accountinfo"
C:\Users\USER\Desktop\CnR\gamemodes\CNR.pwn(9626) : warning 215: expression has no effect
C:\Users\USER\Desktop\CnR\gamemodes\CNR.pwn(9626) : error 001: expected token: ";", but found "]"
C:\Users\USER\Desktop\CnR\gamemodes\CNR.pwn(9626) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\CnR\gamemodes\CNR.pwn(9626) : fatal error 107: too many error messages on one line
|
thanks in advanced
Re: dcmd error -
Dragonsaurus - 25.08.2013
Maybe Account
Info instead of Accountinfo?
Re: dcmd error -
Thundey - 25.08.2013
sry for double posting , but when i press on edit it doesn't function
.
i also wrote OnPlayerCommandText: dcmd(cc, 2, cmdtext);
EDIT: Stupid me , thanks lol