Warning Symbol is never used?
#1

Hey guys hit a problem and I'm not seeing how to fix it. I know the script sees the symbol as not used, but I can't see why, can someone else take a quick look?

pawn Код:
warning 203: symbol is never used: "randcure"
pawn Код:
new randcure[10] = {
{pickup}, {pickup2}, {pickup3},{pickup4},{pickup5},
{pickup6},{pickup7}, {pickup8},{pickup9},{pickup10}
};
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new RandCurePickup = random(sizeof(randcure));

    if(pickupid == RandCurePickup)
    {
        GivePlayerMoney(playerid,10000); // Just for the test
        SendClientMessage(playerid, COLOUR_RED, "JACKPOT" );
    }
    return 1;
}
Reply
#2

You're not using the symbol. You should get rid of it if you don't need it, but if you really do need it and just want to get rid of the problem using a temporary fix, then you can use #pragma unused.

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new RandCurePickup = random(sizeof(randcure));
    #pragma unused randcure

    if(pickupid == RandCurePickup)
    {
        GivePlayerMoney(playerid,10000); // Just for the test
        SendClientMessage(playerid, COLOUR_RED, "JACKPOT" );
    }
    return 1;
}
Reply
#3

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)