Warning 203: symbol is never used
#6

Basically you're changing the contents of "cop-tools.inc" to this:
pawn Code:
#include <a_samp>

/*
//////////////////////////////
//////////CopTools////////////
//////////by Geso/////////////
//////////////////////////////

These functions can be used with i.e.:

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/arm", cmdtext, true, 4) == 0)
    {
        PutRiotShieldOnArm(playerid);
        return 1;
    }
    if (strcmp("/back", cmdtext, true, 5) == 0)
    {
        PutRiotShieldOnBack(playerid);
        return 1;
    }
    if (strcmp("/light", cmdtext, true, 6) == 0)
    {
        GiveFlashLight(playerid);
        return 1;
    }
    if (strcmp("/tazer", cmdtext, true, 6) == 0)
    {
        GiveTazer(playerid);
        return 1;
    }
    if (strcmp("/removeitems", cmdtext, true, 11) == 0)
    {
            if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
            if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
        return 1;
    }
    return 0;
}
*/


stock RemoveItems(playerid)
{
    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
    if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
}

stock PutRiotShieldOnBack(playerid)
{
    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
    SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
}

stock PutRiotShieldOnArm(playerid)
{
    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
    SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}

stock GiveFlashLight(playerid)
{
    if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
    SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
}

stock GiveTazer(playerid)
{
    if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
    SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1);
}
You will then need to save and re-compile your script
Reply


Messages In This Thread
Warning 203: symbol is never used - by Uberanwar - 25.06.2012, 11:53
Re: Warning 203: symbol is never used - by Hawky133 - 25.06.2012, 12:01
Re: Warning 203: symbol is never used - by Uberanwar - 25.06.2012, 12:06
Re: Warning 203: symbol is never used - by Hawky133 - 25.06.2012, 12:11
Re: Warning 203: symbol is never used - by Uberanwar - 25.06.2012, 12:11
Re: Warning 203: symbol is never used - by Hawky133 - 25.06.2012, 12:14
Re: Warning 203: symbol is never used - by Uberanwar - 25.06.2012, 12:24
Re: Warning 203: symbol is never used - by Smokkr - 25.06.2012, 12:27
Re: Warning 203: symbol is never used - by Skaizo - 25.06.2012, 12:28

Forum Jump:


Users browsing this thread: 3 Guest(s)