Car ids problem
#1

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.
Reply
#2

help me please
Reply
#3

Wokie ask this at Cali's thread.
Reply
#4

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
Reply
#5

Its not my GM and i've never done my own dealership before, can anyone tell me please why it does happen
Reply
#6

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.
Reply
#7

Can you tell me what i have to rewrite?
Reply
#8

Yes, to fix this you'll have to rewrite to fix it..
Else you gonna change GM, or you gonna change FS.
Reply
#9

So i have to look for FS that uses static vehicle ids?
Reply
#10

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.
Reply
#11

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
No, you would have to make GM vehicle IDs dynamic.
Aand how exactly i should do that?
Reply
#12

Show the code where it kicks you out of the car.
Reply
#13

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;
            }
Reply
#14

Now find the AddStaticVehicle lines in OnGameModeInit where you create vehicles 81-90
Reply
#15

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
Reply
#16

.....................
Reply
#17

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.
Reply
#18

ok i will try it, thank you

Edit: It worked!! Thank you very much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)