Car ids problem -
Wokie - 03.08.2011
I have this RolePlay Gm that i downloaded and it didnt have car ownership so i downloaded Cali-Cars car ownership and now when i installed it and runned my server all my car ids were messed up like my police cars were ambulances and When i take the Car mechanic job and enter mechanics car it says im not hotdog dealer and kicks me out of the mechanics car. Sorry for bad english.
Re: Car ids problem -
Wokie - 03.08.2011
help me please
Re: Car ids problem -
WoodPecker - 03.08.2011
Wokie ask this at Cali's thread.
Re: Car ids problem -
TouR - 03.08.2011
You should know that errors like this will occur. All you have to do is remove the FS and start your own dealership in yourgamemode so its compatible, Good luck
Re: Car ids problem -
Wokie - 04.08.2011
Its not my GM and i've never done my own dealership before, can anyone tell me please why it does happen
Re: Car ids problem -
MadeMan - 04.08.2011
Your GM probably uses static vehicle IDs so it doesn't really suit with the FS. You need to rewrite quite a lot of code to fix this.
Re: Car ids problem -
Wokie - 04.08.2011
Can you tell me what i have to rewrite?
Re: Car ids problem -
ⒹⒾⓇⒺⒸⓉⓄⓇ - 04.08.2011
Yes, to fix this you'll have to rewrite to fix it..
Else you gonna change GM, or you gonna change FS.
Re: Car ids problem -
Wokie - 04.08.2011
So i have to look for FS that uses static vehicle ids?
Re: Car ids problem -
MadeMan - 04.08.2011
Quote:
Originally Posted by Wokie
So i have to look for FS that uses static vehicle ids?
|
No, you would have to make GM vehicle IDs dynamic.
Re: Car ids problem -
Wokie - 04.08.2011
Quote:
Originally Posted by MadeMan
No, you would have to make GM vehicle IDs dynamic.
|
Aand how exactly i should do that?
Re: Car ids problem -
MadeMan - 04.08.2011
Show the code where it kicks you out of the car.
Re: Car ids problem -
Wokie - 04.08.2011
The part when it says im not a hotdog dealer?
pawn Код:
if((vehicleid >= 81) && (vehicleid <= 90))
{
if(PlayerInfo[playerid][pJob] != HOTDOGJOB_ID)
{
SendClientMessage(playerid, COLOR_SYSTEM, "You're not a hotdog dealer.");
RemoveDriverFromVehicle(playerid);
return 1;
}
Re: Car ids problem -
MadeMan - 04.08.2011
Now find the AddStaticVehicle lines in OnGameModeInit where you create vehicles 81-90
Re: Car ids problem -
Wokie - 04.08.2011
pawn Код:
AddStaticVehicle(588,-2501.4048,411.2530,27.6870,327.3975,1,1); // hotdog 81
AddStaticVehicle(588,-2508.5381,416.9856,27.6876,328.3657,1,1); // hotdog 82
AddStaticVehicle(588,-2491.2310,424.1345,27.6864,135.4549,1,1); // hotdog 83
AddStaticVehicle(588,-2497.0337,429.7789,27.6885,136.9934,1,1); // hotdog 83
AddStaticVehicle(588,-2477.7212,412.2234,27.6906,139.0038,1,1); // hotdog 84
AddStaticVehicle(588,-2479.7639,393.9415,27.6839,322.7063,1,1); // hotdog 85
AddStaticVehicle(588,-2497.1121,361.1898,35.0262,59.5935,1,1); // hotdog 86
AddStaticVehicle(588,-2518.2822,346.5904,35.0273,245.1825,1,1); // hotdog 87
AddStaticVehicle(588,-2512.6914,325.1222,35.0365,70.8284,1,1); // hotdog 88
AddStaticVehicle(588,-2529.6628,314.1962,35.0266,252.6426,1,1); // hotdog 89
AddStaticVehicle(588,-2508.2422,438.0712,27.0642,308.9466,1,1); // hotdog 90
Re: Car ids problem -
SpankMe2 - 04.08.2011
.....................
Re: Car ids problem -
MadeMan - 04.08.2011
One way to make these vehicle IDs dynamic:
pawn Код:
new HotdogStart;
new HotdogEnd;
pawn Код:
HotdogStart = AddStaticVehicle(588,-2501.4048,411.2530,27.6870,327.3975,1,1); // hotdog 81
AddStaticVehicle(588,-2508.5381,416.9856,27.6876,328.3657,1,1); // hotdog 82
AddStaticVehicle(588,-2491.2310,424.1345,27.6864,135.4549,1,1); // hotdog 83
AddStaticVehicle(588,-2497.0337,429.7789,27.6885,136.9934,1,1); // hotdog 83
AddStaticVehicle(588,-2477.7212,412.2234,27.6906,139.0038,1,1); // hotdog 84
AddStaticVehicle(588,-2479.7639,393.9415,27.6839,322.7063,1,1); // hotdog 85
AddStaticVehicle(588,-2497.1121,361.1898,35.0262,59.5935,1,1); // hotdog 86
AddStaticVehicle(588,-2518.2822,346.5904,35.0273,245.1825,1,1); // hotdog 87
AddStaticVehicle(588,-2512.6914,325.1222,35.0365,70.8284,1,1); // hotdog 88
AddStaticVehicle(588,-2529.6628,314.1962,35.0266,252.6426,1,1); // hotdog 89
HotdogEnd = AddStaticVehicle(588,-2508.2422,438.0712,27.0642,308.9466,1,1); // hotdog 90
pawn Код:
if((vehicleid >= HotdogStart) && (vehicleid <= HotdogEnd))
{
if(PlayerInfo[playerid][pJob] != HOTDOGJOB_ID)
{
SendClientMessage(playerid, COLOR_SYSTEM, "You're not a hotdog dealer.");
RemoveDriverFromVehicle(playerid);
return 1;
}
You need to do the same with all the other vehicles that are messed up.
Re: Car ids problem -
Wokie - 04.08.2011
ok i will try it, thank you
Edit: It worked!! Thank you very much.