Warning help.
#1

Before I add this,

pawn Код:
CMD:kick(playerid, params[])
{
    new str[128], id, reason[50], name[MAX_PLAYER_NAME];
    if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[KICK]){
        format(str, 128, "{FF3300}You must be a level %d administrator to use that command!", gCommands[KICK])
        SendClientMessage(playerid, COLOR_ORANGE, str);
        return 1;
    }
    if(sscanf(params, "ds[50]", id, reason)) return SendClientMessage(playerid, COLOR_ORANGE, "{FF3300}USAGE: /kick [playerid] [reason]");
    format(str, 128, "[KICK] You have been kicked [[ %s ]]", reason);
    SendClientMessage(id, 0xFF0000AA, str);
    Kick(id);
    GetPlayerName(id, name, MAX_PLAYER_NAME);
    format(str, 128, "[KICK] %s has been kicked [[ %s ]]", name, reason);
    SendClientMessageToAll(0xFF0000AA, str);
    return 1;
}
I don't get no warnings, but after it, I get this....


Код:
new.pwn(349) : warning 203: symbol is never used: "kick"
What's up?
Reply
#2

Show us your line 349
Reply
#3

Quote:
Originally Posted by Shidony
Посмотреть сообщение
Show us your line 349
There isn't one.
Reply
#4

Have you got:
pawn Код:
new kick;
?
Reply
#5

Nope.
Reply
#6

Go top of gm and delete new kick[smthing here];
Reply
#7

Quote:
Originally Posted by Gertin
Посмотреть сообщение
Go top of gm and delete new kick[smthing here];
Read up, there isn't a "new kick" or anything upon that type.
Reply
#8

pawn Код:
#pragma unused kick
Reply
#9

Gives me errors.
Reply
#10

put erors,I help you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)