PaintJob Problem..
#10

Check again if return 1;
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 90) {
        if(response) {
            if(listitem == 0) {
                if(IsPlayerInAnyVehicle(playerid)) {
                    ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 0);
                }
                else return SendClientMessage(playerid, COLOR_RED, "[ERROR] {FFFFFF}You are not in a vehicle!");
            }
            if(listitem == 1) {
                if(IsPlayerInAnyVehicle(playerid)) {
                    ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 1);
                }
                else return SendClientMessage(playerid, COLOR_RED, "[ERROR] {FFFFFF}You are not in a vehicle!");
            }
            if(listitem == 2) {
                if(IsPlayerInAnyVehicle(playerid)) {
                    ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 2);
                }
                else return SendClientMessage(playerid, COLOR_RED, "[ERROR] {FFFFFF}You are not in a vehicle!");
            }
            if(listitem == 3) {
                if(IsPlayerInAnyVehicle(playerid)) {
                    ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 3);
                }
                else return SendClientMessage(playerid, COLOR_RED, "[ERROR] {FFFFFF}You are not in a vehicle!");
            }
        }
    }
    return 1;
}
If it still, change the Dialog id. Maybe there is same id at another dialog
Reply


Messages In This Thread
PaintJob Problem.. - by dorperez - 10.11.2011, 12:29
Re: PaintJob Problem.. - by Kostas' - 10.11.2011, 12:39
Re: PaintJob Problem.. - by dorperez - 10.11.2011, 12:49
Re: PaintJob Problem.. - by Kostas' - 10.11.2011, 12:54
Re: PaintJob Problem.. - by dorperez - 10.11.2011, 13:17
Re: PaintJob Problem.. - by Kostas' - 10.11.2011, 13:36
Re: PaintJob Problem.. - by dorperez - 10.11.2011, 14:01
Re: PaintJob Problem.. - by Kostas' - 10.11.2011, 14:04
Re: PaintJob Problem.. - by dorperez - 10.11.2011, 14:05
Re: PaintJob Problem.. - by Kostas' - 10.11.2011, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)