Helper Help
#1

Hello i today want to make Helper and i tryed and i get one warning i dont know how to fix it!

pawn Код:
COMMAND:makehelper(playerid, params[])
{
    new id;
    new Helper2;
    if(IsPlayerConnected(id))
    {
        if(PlayerInfo[playerid][pAdminLevel] >= 10 || IsPlayerAdmin(playerid))
        {
            if(!sscanf(params, "ui", id, Helper2))
            {
                if((Helper2 >= 1 && Helper2 <= 5) || Helper2 == 0)
                {
                    new string[64];
                    new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                    GetPlayerName(playerid, name, sizeof(name));
                    GetPlayerName(id, PlayerName, sizeof(PlayerName));
                    format(string, sizeof(string), "Congratulation!You are Helper now!By Admin %s", name, Helper2);
                    SendClientMessage(id, 0xD8D8D8FF, string);
                    format(string, sizeof(string), "You have been given Helper to %s", Helper2, PlayerName);
                    SendClientMessage(playerid, 0xD8D8D8FF, string);
                    PlayerInfo[id][pAdminLevel] = Helper2;
                    return 1;
                }
                else return SendClientMessage(playerid, 0xD8D8D8FF, "Avaliable Levels: 1");
            }
            else return SendClientMessage(playerid, 0xD8D8D8FF, "USAGE: /makehelper [PlayerId/PartOfName] [AdminLevel]");
        }
        else return SendClientMessage(playerid, 0xD8D8D8FF, "You Need Rcon Admin To Use This Command!");
    }
    else return SendClientMessage(playerid, 0xD8D8D8FF, "Player Is Not Connected");
}
And warning is
Код:
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\ItalyMafia.pwn(30519) : warning 203: symbol is never used: "makehelper"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          10560 bytes
Code size:          1072268 bytes
Data size:          2013272 bytes
Stack/heap size:      16384 bytes; estimated max. usage=6302 cells (25208 bytes)
Total requirements: 3112484 bytes

1 Warning.
Reply
#2

Try this at the top of your script or somewhere, I'm not sure it will work because I didn't see all your helper system, so this should remove the warning at least.

pawn Код:
#pragma unused makehelper
Reply
#3

Now this warnings
Код:
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\ItalyMafia.pwn(30513) : warning 213: tag mismatch
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\ItalyMafia.pwn(30515) : warning 213: tag mismatch
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\ItalyMafia.pwn(30517) : warning 213: tag mismatch
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\ItalyMafia.pwn(30519) : warning 213: tag mismatch
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\ItalyMafia.pwn(30521) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          10560 bytes
Code size:          1073704 bytes
Data size:          2014212 bytes
Stack/heap size:      16384 bytes; estimated max. usage=6302 cells (25208 bytes)
Total requirements: 3114860 bytes

5 Warnings.
I put in register system dini_Int and SetInt and that warngins i dont know why!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)