Never used symbol
#1

C:\Users\Davey\Downloads\LuxAdmin.pwn(11213) : warning 203: symbol is never used: "achat"
C:\Users\Davey\Downloads\LuxAdmin.pwn(11213) : warning 203: symbol is never used: "apm"

Quote:

CMD:apm(playerid, params[])
{
new str[128], str2[128], id;
if(sscanf(params,"ds[128]", id, str2)) return SendClientMessage(playerid, red,"USAGE: /apm [id] [message]");
if(IsPlayerConnected(id))
{
if(id != playerid)
{

if(PlayerInfo[playerid][Level] >= 1)
{
format(str, sizeof(str),"Admin PM to [%d]%s: %s", id, PlayerName2(id), str2);
SendClientMessage(playerid, yellow, str);
format(str, sizeof(str),"[PM]Admin: %s", str2);
SendClientMessage(id, COLOR_PINK, str);
PlayerPlaySound(id,1085,0.0,0.0,0.0);
}
else return SendClientMessage(playerid, red,"You are not a high enough level to use this command");
}
else return SendClientMessage(playerid, red,"You cannot PM yourself");
}
else return SendClientMessage(playerid, red,"Player is not connected");
return 1;
}
================================================== ============
// enum:
enum
{
Adminlevel
}
new pInfo [MAX_PLAYERS] [PlayerData];
// CMD:
CMD:achat(playerid, params[])
{
new p2[128], Pna[32];
if(pInfo[playerid] [Adminlevel] < 1) return 0;
if( isnull (params)) return SendClientMessage(playerid, COLOR_RED, "/ac [msg]");
GetPlayerName(playerid, Pna, 32);
if (pInfo [playerid] [AdminLevel] >= 1 || IsPlayerAdmin(playerid))
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(pInfo [i] [Adminlvl] >= 1)
{
format(p2, 128, "Admin %s (%d): %s", Pna, playerid, params);
SendClientMessage(i , -1, p2);
}
}
}
}
return 1;
}

Can somebody help me fix this
Reply


Messages In This Thread
Never used symbol - by lulo356 - 08.12.2013, 10:12
Re: Never used symbol - by Insulin - 08.12.2013, 10:18
Re: Never used symbol - by [WA]iRonan - 08.12.2013, 10:19
Re: Never used symbol - by newbie scripter - 08.12.2013, 10:19
Re: Never used symbol - by lulo356 - 08.12.2013, 20:25
Re: Never used symbol - by lulo356 - 08.12.2013, 21:23
Re: Never used symbol - by Emmet_ - 08.12.2013, 21:31
Re: Never used symbol - by lulo356 - 08.12.2013, 22:01
Re: Never used symbol - by newbie scripter - 09.12.2013, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)