Please HELP ME ASAP - 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: Please HELP ME ASAP (
/showthread.php?tid=484208)
Please HELP ME ASAP -
Antoniohl - 29.12.2013
Hey i need help with..
i've made Mechanic Cars But There's a problem, i don't know why when Entering "rentcars" it says "You're not a mechanic"
Here's what i've done
For example:
Код:
new Mechaniccars[4];
Код:
Mechaniccars[0] = AddStaticVehicle(490,1668.8650,-1716.8369,15.6973,93.7591,0,0); //
Mechaniccars[1] = AddStaticVehicle(490,1668.8347,-1710.1844,15.7777,92.1376,0,0); //
Mechaniccars[2] = AddStaticVehicle(490,1668.6270,-1703.3350,15.7783,90.5370,0,0); //
Mechaniccars[3] = AddStaticVehicle(490,1668.3159,-1696.6547,15.7775,91.7113,0,0); //
Код:
}
if(vehicleid >= Mechaniccars[0] && vehicleid <= Mechaniccars[3])
{
if(PlayerInfo[playerid][pJob] != 7)
{
SendClientMessage(playerid, COLOR_GREY,"You are not a Mechanic ");
ClearAnimations(playerid);
}
What's the problem

Re: Please HELP ME ASAP -
Lordzy - 29.12.2013
It's because player's mechanic job array isn't set to 7 or the required one. Ensure that you've set player's job to 7.
pawn Код:
PlayerInfo[playerid][pJob] = 7;
Re: Please HELP ME ASAP -
dominik523 - 29.12.2013
Do you use loop to check if the vehicle is rented car? Please place the code of the rented cars too.
Re: Please HELP ME ASAP -
Antoniohl - 29.12.2013
Quote:
Originally Posted by dominik523
Do you use loop to check if the vehicle is rented car? Please place the code of the rented cars too.
|
Thanks! +rep