SA-MP Forums Archive
Paintjobable cars - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Paintjobable cars (/showthread.php?tid=315806)



Paintjobable cars - lamarr007 - 04.02.2012

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


Re: Paintjobable cars - milanosie - 04.02.2012

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","->");



Re: Paintjobable cars - lamarr007 - 04.02.2012

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.


Re: Paintjobable cars - milanosie - 04.02.2012

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.");