Not working
#3

This is how to get gas can, I'm saving it to veriable or w/e it is
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_GASCAN)
    {
        if(response)
        {
            if(listitem == 0) // Small size gas can
            {
                GCS[playerid] = 1;
                SendClientMessage(playerid, COLOR_RED,"{00FF00}INFO: {FFFFFF}You bought small size gas can, use {FF6A22}/usegc {FFFFFF}to refill your vehicle");
            }
            if(listitem == 1) // Medium size gas can
            {
                GCM[playerid] = 1;
                SendClientMessage(playerid, COLOR_RED,"{00FF00}INFO: {FFFFFF}You bought medium size gas can, use {FF6A22}/usegc {FFFFFF}to refill your vehicle");
            }
            if(listitem == 2) // Big size gas can
            {
                GCB[playerid] = 1;
                SendClientMessage(playerid, COLOR_RED,"{00FF00}INFO: {FFFFFF}You bought big size gas can, use {FF6A22}/usegc {FFFFFF}to refill your vehicle");
            }
        }
        return 1;
    }

    return 0;
}
doesn't != 1 means If it's not 1 it will send msg...
but when I buy it on gas station it should change to 1 and this msg should gone..
Reply


Messages In This Thread
Not working - by Lajko1 - 25.11.2013, 16:38
Re: Not working - by Konstantinos - 25.11.2013, 16:47
Re: Not working - by Lajko1 - 25.11.2013, 17:10
Re: Not working - by Konstantinos - 25.11.2013, 17:23
Re: Not working - by Lajko1 - 25.11.2013, 17:30
Re: Not working - by Konstantinos - 25.11.2013, 17:40
Re: Not working - by Lajko1 - 25.11.2013, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)