dcmd_acmds PROBLEM (+REP)
#1

Hey i have problems with

code:

pawn Код:
dcmd_acmds(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[ACMDS])
{
new string[128];
format(string, sizeof(string), "You must be a level %d administrator to use that command!", gCommands[ACMDS]);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "ADMIN COMMANDS: /kick,/ban");
}
return 1;
}
Error:
Код:
C:\Users\eesti\Desktop\test1\COD\filterscripts\Admin.pwn(496) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Its Compliting But /acmds dont work!
Reply
#2

pawn Код:
dcmd_acmds(playerid, params[])
{
    #pragma unused params
    if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[ACMDS]) {
        new string[128];
        format(string, sizeof(string), "You must be a level %d administrator to use that command!", gCommands[ACMDS]);
        SendClientMessage(playerid, COLOR_ORANGE, string);
    }
    else {
        SendClientMessage(playerid, COLOR_ORANGE, "ADMIN COMMANDS: /kick,/ban");
    }
    return 1;
}
Reply
#3

Tryed i get another Error!
Want Get it?

Код:
C:\Users\eesti\Desktop\test1\COD\filterscripts\Admin.pwn(192) : error 017: undefined symbol "params"
C:\Users\eesti\Desktop\test1\COD\filterscripts\Admin.pwn(498) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)