Player not detected when he enters the vehicle? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player not detected when he enters the vehicle? (
/showthread.php?tid=83511)
Player not detected when he enters the vehicle? -
Yoyoyo - 25.06.2009
Problem:
When the player enters the vehicle the code doesnt come.
When I just had the Garbage Minimission it worked fine.
When I added the boat and the Gun it didnt do the code when he entered the vehicle.
I copied the same exact method as I did the garbage
I dont know why it just failed.
The code gets no errors or warnings . . .
http://pastebin.com/m5e5561b6
Please help me "/
Re: Player not detected when he enters the vehicle? -
Yoyoyo - 26.06.2009
bump
Re: Player not detected when he enters the vehicle? -
abhinavdabral - 26.06.2009
Do you have adde this code under OnPlayerEnterVehicle() ??
Код:
new ICream = GetPlayerVehicleID(playerid);
if (ICream == GarbageTruck)
{
IsInGarbage[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /startgmini to start the Garbage Minimission!");
}
if (ICream == Boat)
{
IsInBoat[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /startbmini to start the Boat Delivery Minimission!");
}
if (ICream == GunTruck)
{
IsInGun[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /startgunmini to start the Gun Minimission!");
}
Thank You
-Abhinav
Re: Player not detected when he enters the vehicle? -
Yoyoyo - 26.06.2009
Yes it is . .
Re: Player not detected when he enters the vehicle? -
abhinavdabral - 26.06.2009
oh... Tell me if it will be sorted out.. till then i will also work on it
Thank You
-Abhinav