Symbole Is NEVER USED : [ HELP]
#1

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

new AdminDuty[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif

public OnGameModeExit()
{
    return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}


enum playerinfo
{
p_level,
}
new Player[MAX_PLAYERS][playerinfo];

CMD:onduty(playerid, params[])
{
if(Player[playerid][p_level] >= 1)
{
if(AdminDuty[playerid] == 0)
{
new string[128];
AdminDuty[playerid] = 1;
format(string, sizeof(string),"Admin %s is now onduty!", GetName(playerid));
SendClientMessageToAll(-1, string);
}
else SendClientMessage(playerid, -1,"You are already on duty.");
}
else SendClientMessage(playerid, -1,"You are not an admin.");
return 1;
}

CMD:offduty(playerid, params[])
{
if(Player[playerid][p_level] >= 1)
{
if(AdminDuty[playerid] == 1)
{
new string[128];
AdminDuty[playerid] = 0;
format(string, sizeof(string),"Admin %s is now offduty!", GetName(playerid));
SendClientMessageToAll(-1, string);
}
else SendClientMessage(playerid, -1,"You are already off duty.");
}
else SendClientMessage(playerid, -1,"You are not an admin.");
return 1;
}

stock GetName(playerid)
{
new pname[24];
GetPlayerName(playerid, pname, sizeof(pname));
return pname;
}
i am using this code to crete admin duty but i got the following error
Код:
C:\Users\Hazaras\Desktop\(FINAL)\filterscripts\test.pwn(98) : warning 203: symbol is never used: "offduty"
C:\Users\Hazaras\Desktop\(FINAL)\filterscripts\test.pwn(98) : warning 203: symbol is never used: "onduty"
Can some one please help me ?
Reply


Messages In This Thread
Symbole Is NEVER USED : [ HELP] - by HaZaRaS™ - 13.05.2012, 04:47
Respuesta: Symbole Is NEVER USED : [ HELP] - by aNdReSk - 13.05.2012, 04:50
Re: Respuesta: Symbole Is NEVER USED : [ HELP] - by HaZaRaS™ - 13.05.2012, 04:52
Re: Symbole Is NEVER USED : [ HELP] - by freddy smyth - 13.05.2012, 04:57
Re: Symbole Is NEVER USED : [ HELP] - by HaZaRaS™ - 13.05.2012, 04:59
Re: Symbole Is NEVER USED : [ HELP] - by freddy smyth - 13.05.2012, 05:03
Re: Symbole Is NEVER USED : [ HELP] - by James Coral - 13.05.2012, 05:29
Re: Symbole Is NEVER USED : [ HELP] - by Ballu Miaa - 13.05.2012, 06:01
Re: Symbole Is NEVER USED : [ HELP] - by HaZaRaS™ - 13.05.2012, 06:21
AW: Re: Symbole Is NEVER USED : [ HELP] - by Nero_3D - 13.05.2012, 11:02

Forum Jump:


Users browsing this thread: 4 Guest(s)