PDA

View Full Version : Transfender/LocoLowCo/WheelArch bug


GGRoleplay
08/12/2013, 11:58 AM
Well, the video describes everything can I please have some help asap?
http://www.youtube.com/watch?v=Ldt7umnQVn4&feature=youtu.be

FilesMAker
08/12/2013, 12:01 PM
what is the problem here ?

GGRoleplay
08/12/2013, 12:03 PM
I step out of my car when I press RETURN or so, or backspace, how can I fix it for the rest for the server because other servers freeze you, so you wont leave your car

SkittlesAreFalling
08/12/2013, 12:05 PM
That's weird, is it a custom menu?

FilesMAker
08/12/2013, 12:07 PM
use this it ll freeze you :
TogglePlayerControllable(playerid, 0);

and when you exit this place use :
TogglePlayerControllable(playerid, 1);

I want to ask are you who made this vehicle editing menu?

GGRoleplay
08/12/2013, 12:13 PM
It's just the default one, I'm not that good in scripting, what do I need to add in the script and where actually?

FilesMAker
08/12/2013, 12:14 PM
I ll do my best I ll search the solution :D

FilesMAker
08/12/2013, 12:20 PM
Use this it may help !!


public OnEnterExitModShop(playerid, enterexit, interiorid)
{
if(enterexit == 0)
{
TogglePlayerControllable(playerid, 0);
}

if(enterexit == 1)
{
TogglePlayerControllable(playerid, 1);
}
return 1;
}

GGRoleplay
08/12/2013, 12:23 PM
Okay, I'll try it in a few minuts :) thanks for the support everyone.

FilesMAker
08/12/2013, 12:24 PM
Tell me if it works or not !

GGRoleplay
08/12/2013, 12:33 PM
Alright

GGRoleplay
08/12/2013, 12:38 PM
C:\Users\Brandon\Desktop\intergenrp\GGRP.pwn(29357 ) : error 021: symbol already defined: "OnEnterExitModShop"

FilesMAker
08/12/2013, 12:40 PM
you need to search "public OnEnterExitModShop" because the pawno scripts has already this entry.
Delet the old one and compile :D

GGRoleplay
08/12/2013, 12:44 PM
Im frozen when I leave it, didnt work. And I cant choose something (Im using Vortex RP 1)

FilesMAker
08/12/2013, 12:46 PM
Yeah i just see my mistake just turn 0 to 1 and 1 to 0 This is the new code :

public OnEnterExitModShop(playerid, enterexit, interiorid)
{
if(enterexit == 0)
{
TogglePlayerControllable(playerid, 1);
}

if(enterexit == 1)
{
TogglePlayerControllable(playerid, 0);
}
return 1;
}

GGRoleplay
08/12/2013, 12:59 PM
Okay. Thank you, I'll be testing it in a couple of minuts

GGRoleplay
08/12/2013, 01:07 PM
http://i.imgur.com/eacifA7.png

FilesMAker
08/12/2013, 01:17 PM
what the problem ? did you get out of the car?

GGRoleplay
08/12/2013, 01:28 PM
Yeah and I couldnt enter it again, and I cant choose an option

erminpr0
08/12/2013, 01:37 PM
maybe returning false in OnPlayerExitVehicle will prevent player from exiting, or use TogglePlayerControlable(playerid, false)
when player attempts to leave car, or:
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));

FilesMAker
08/12/2013, 01:40 PM
search if you have this function :

RemovePlayerFromVehicle(playerid);

Use Ctrl+F

FilesMAker
08/12/2013, 01:45 PM
maybe returning false in OnPlayerExitVehicle will prevent player from exiting, or use TogglePlayerControlable(playerid, false)
when player attempts to leave car, or:
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));

He is already out GetPlayerVehicleSeat may return anything!

erminpr0
08/12/2013, 02:44 PM
He is already out GetPlayerVehicleSeat may return anything!

Riiight, stupid me, so put 0 (DRIVER)

GGRoleplay
08/12/2013, 03:25 PM
I might be stupid, where do I need to put it?

FilesMAker
08/12/2013, 03:34 PM
You need to put it on this callback "public OnPlayerExitVehicle()"

GGRoleplay
12/12/2013, 12:56 PM
No it doesn't.
I'm using VX-RP 1, edited a little bit, removed some bugs