Paintjobable cars
#1

Hi !
Iґm working now on tune menu for my server.
I have this for show paintjob menu >
pawn Код:
new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid);
if (vehmodel != 534 || 535 || 536 || 558 || 559 || 560 || 561 || 562 || 565 || 567 || 576) return SendClientMessage(playerid, red, "Error: You donґt have supported vehicle.");
else ShowPlayerDialog(playerid, 9967, DIALOG_STYLE_LIST, "Paintjobs", "Paintjob 1\nPaintjob 2\nPaintjob 3","Select","->");
My problem is > It always send message "You donґt have supported vehicle."
Can you solve this please ? Iґll add reputation to you
Reply
#2

pawn Код:
new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid);
if (!vehmodel == 534 ||  535 || 536 || 558 ||559 || 560 || 561 || 562 || 565 || 567 || 576) return SendClientMessage(playerid, red, "Error: You donґt have supported vehicle.");
else ShowPlayerDialog(playerid, 9967, DIALOG_STYLE_LIST, "Paintjobs", "Paintjob 1\nPaintjob 2\nPaintjob 3","Select","->");
Reply
#3

Thanks, but i have warring
pawn Код:
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\base.pwn(1926) : warning 213: tag mismatch
Line :
pawn Код:
if (!vehmodel == 534 || 535 || 536 || 558 || 559 || 560 || 561 || 562 || 565 || 567 || 576) return ClientLanguageText(playerid, red, "Error: Nemбte podporovanй vozidlo.","Error: You donґt have supported vehicle.");
EDIT: It doenґt work Always show this message.
Reply
#4

pawn Код:
if (!vehmodel == 534 || !vehmodel == 535 || !vehmodel == 536 || !vehmodel == 558 || !vehmodel == 559 || !vehmodel == 560 || !vehmodel == 561 || !vehmodel == 562 || !vehmodel == 565 || !vehmodel == 567 || !vehmodel == 576) return ClientLanguageText(playerid, red, "Error: Nemбte podporovanй vozidlo.","Error: You donґt have supported vehicle.");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)