SA-MP Forums Archive
Load PerSonal Cars - 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: Load PerSonal Cars (/showthread.php?tid=311996)



Load PerSonal Cars - CaTaLinU - 19.01.2012

I have added into OnGameModeInit

after all CreateVehicle

PHP код:
    for(new 377sizeof(CarInfo); h++)
    {
        
AddStaticVehicle(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
        
SetVehicleNumberPlate(h,CarInfo[h][cLicense]);
    } 
but when i go to park in LS near the bank , it doesn't show them from cars.cfg ....

can you say me why ?


Re: Load PerSonal Cars - CaTaLinU - 19.01.2012

HELP ?


Re: Load PerSonal Cars - milanosie - 19.01.2012

I dont get it at all


Re: Load PerSonal Cars - thimo - 19.01.2012

Any info? -.-


Re: Load PerSonal Cars - Snowman12 - 19.01.2012

pawn Код:
for(new h; h < MAX_SERVER_VEHICLES; h++) // Incorrect loop give it a go.
    {
        AddStaticVehicle(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
        SetVehicleNumberPlate(h,CarInfo[h][cLicense]);
    }