SA-MP Forums Archive
Warning help. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning help. (/showthread.php?tid=262178)



Warning help. - iGetty - 16.06.2011

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?


Re : Warning help. - Shidony - 16.06.2011

Show us your line 349


Re: Re : Warning help. - iGetty - 16.06.2011

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


Re : Warning help. - Shidony - 16.06.2011

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


Re: Warning help. - iGetty - 16.06.2011

Nope.


Re: Warning help. - Gertin - 16.06.2011

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


Re: Warning help. - iGetty - 17.06.2011

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.


Re: Warning help. - Skaizo - 17.06.2011

pawn Код:
#pragma unused kick



Re: Warning help. - iGetty - 17.06.2011

Gives me errors.


Re: Warning help. - Skaizo - 17.06.2011

put erors,I help you