dcmd error
#1

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
Reply
#2

Maybe AccountInfo instead of Accountinfo?
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)