warning "function never used"
#1

Warnings:
PHP код:
NPP_EXEC"Pawno Comp."
NPP_SAVEC:\Users\sekseriic\Desktop\dwrp_server\gamemodes\dwrp_mode.pwn
CD
C:\Users\sekseriic\Desktop\dwrp_server\gamemodes
Current directory
C:\Users\sekseriic\Desktop\dwrp_server\gamemodes
"C:\Users\sekseriic\Desktop\dwrp_server\pawno\pawncc.exe" "dwrp_mode.pwn" -; -(
Process started >>>
dwrp_mode.pwn(386) : warning 203symbol is never used"AccessDenied"
dwrp_mode.pwn(386) : warning 203symbol is never used"GetAdminLevelName"
dwrp_mode.pwn(386) : warning 203symbol is never used"SendAdminMessage"
dwrp_mode.pwn(386) : warning 203symbol is never used"SendErrorMessage"
dwrp_mode.pwn(386) : warning 203symbol is never used"SendSyntaxMessage"
dwrp_mode.pwn(386) : warning 203symbol is never used"setadminlevel"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Warnings
.
<<< 
Process finished. (Exit code 0)
================ 
READY ================ 
Codes:
PHP код:
AccessDenied(playerid)
{
    return 
SendServerMessage(playerid"Access denied!");

PHP код:
GetAdminLevelName(i)
{
    new 
tmpString[32];
    switch (
i)
    {
        case 
0format(tmpStringsizeof(tmpString), "Regular Player");
        case 
1format(tmpStringsizeof(tmpString), "Trial Admin");
        case 
2format(tmpStringsizeof(tmpString), "Admin");
        case 
3format(tmpStringsizeof(tmpString), "Super Admin");
        case 
4format(tmpStringsizeof(tmpString), "Lead Admin");
        case 
5format(tmpStringsizeof(tmpString), "Head Admin");
        case 
1337format(tmpStringsizeof(tmpString), "Scripter");
        default: 
format(tmpStringsizeof(tmpString), "Undefined Admin");
    }
    return 
tmpString;

PHP код:
SendAdminMessage(playeridmessage[])
{
    new 
msg[256+1];
    
format(msg,256,"[{CB99C9}admin{EEEEEE}] %s"message);
    
SendClientMessage(playeridcolor_whitemsg);

PHP код:
SendErrorMessage(playeridmessage[])
{
    new 
msg[256+1];
    
format(msg,256,"[{FF6961}error{EEEEEE}] %s"message);
    
SendClientMessage(playeridcolor_whitemsg);

PHP код:
SendSyntaxMessage(playeridmessage[])
{
    new 
msg[256+1];
    
format(msg,256,"[{03C03C}syntax{EEEEEE}] %s"message);
    
SendClientMessage(playeridcolor_whitemsg);

PHP код:
CMD:setadminlevel(playeridparams[])
{
    new 
targetidlevelstr[128];
    if (
playerData[playerid][adminlevel] >= 5) {
        if (
sscanf(params"ui"targetidlevel))
            return 
SendSyntaxMessage(playerid"/setadminlevel [playerid/name] [adminlevel (0-5)]");
        else if (!
IsPlayerLoggedIn(targetid))
            return 
SendErrorMessage(playerid"Player's id or name is invalid.");
        else if (
level || level 5)
            return 
SendErrorMessage(playerid"Entered adminlevel is invalid.");
            
        
format(strsizeof(str), "Player's [%s] admin level has been changed to %i [%s]."GetPlayerNameEx(targetid), levelGetAdminLevelName(level));
        
SendAdminMessage(playeridstr);
        
        
format(strsizeof(str), "[%s] %s has changed your admin level to %i."GetAdminLevelName(playerData[playerid][adminlevel]), GetPlayerNameEx(playerid), level);
        
SendAdminMessage(targetidstr);
        
        
playerData[targetid][adminlevel] = level;
    } else {
        
AccessDenied(playerid);
    }
    return 
1;

Reply


Messages In This Thread
warning "function never used" - by thaKing - 22.08.2015, 17:12
Re: warning "function never used" - by nezo2001 - 22.08.2015, 17:14
Re: warning "function never used" - by thaKing - 22.08.2015, 17:15
Re: warning "function never used" - by Jastak - 22.08.2015, 17:15
Re: warning "function never used" - by nezo2001 - 22.08.2015, 17:16
Re: warning "function never used" - by thaKing - 22.08.2015, 17:17
Re: warning "function never used" - by Vince - 22.08.2015, 17:18
Re: warning "function never used" - by nezo2001 - 22.08.2015, 17:20
Re: warning "function never used" - by thaKing - 22.08.2015, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)