24.06.2011, 16:59
Hello i today want to make Helper and i tryed and i get one warning i dont know how to fix it!
And warning is
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");
}
Код:
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.