WTF its my frist time to get this errors from addv
#1

this my add veh
Quote:

AddStaticVehicle(497,-1680.36800000,705.29660000,30.60156000,180.0000000 0,125,1,900); //Police Maverick
AddStaticVehicle(528,-1587.91400000,747.54220000,-5.24218800,180.00000000,1,125,900); //FBI Truck
AddStaticVehicle(597,-1574.24600000,734.89500000,-5.24218800,90.00000000,1,125,900); //Police Car (SFPD)
AddStaticVehicle(601,-1573.34600000,712.00550000,-5.24218800,90.00000000,1,125,900); //S.W.A.T. Van
AddStaticVehicle(523,-1608.33700000,692.92430000,-5.24218800,180.00000000,1,125,900); //HPV1000
AddStaticVehicle(523,-1612.31500000,691.94350000,-5.24218800,180.00000000,1,125,900); //HPV1000
AddStaticVehicle(411,-1622.75300000,654.27040000,-5.24218800,90.00000000,0,0,900); //Infernus

PHP код:
(3910) : warning 202number of arguments does not match definition
And 
(
3911) : warning 202number of arguments does not match definition
And 
(
3912) : warning 202number of arguments does not match definition
And 
(
3913) : warning 202number of arguments does not match definition 
i Have All Veh from san andreas its all errors why idk
Reply
#2

Hello there.
When using AddStaticVehicle, use it like this
AddStaticVehicle(modelID, x, y, z, angle, colour1, colour2);

if you want to make them respawn after a while, use
AddStaticVehicleEx(modelID, x, y, z, angle, colour1, colour2, respawndelay);

If I've helped you, let me know! Have a nice day lad.
Reply
#3

lol its full to there color and all this its working onther server but this server idk why but its working idk here why i get errors
any one helped me
Reply
#4

AddStaticVehicle - Parameters:

pawn Код:
(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
AddStaticVehicleEx - Parameters:

pawn Код:
(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, RESPAWN_DALAY)
Try it:

pawn Код:
AddStaticVehicleEx(497,-1680.36800000,705.29660000,30.60156000,180.0000000 0,125,1,900); //Police Maverick
AddStaticVehicleEx(528,-1587.91400000,747.54220000,-5.24218800,180.00000000,1,125,900); //FBI Truck
AddStaticVehicleEx(597,-1574.24600000,734.89500000,-5.24218800,90.00000000,1,125,900); //Police Car (SFPD)
AddStaticVehicleEx(601,-1573.34600000,712.00550000,-5.24218800,90.00000000,1,125,900); //S.W.A.T. Van
AddStaticVehicleEx(523,-1608.33700000,692.92430000,-5.24218800,180.00000000,1,125,900); //HPV1000
AddStaticVehicleEx(523,-1612.31500000,691.94350000,-5.24218800,180.00000000,1,125,900); //HPV1000
AddStaticVehicleEx(411,-1622.75300000,654.27040000,-5.24218800,90.00000000,0,0,900); //Infernus
Reply
#5

Try it like this:
Код:
AddStaticVehicle(497,-1680.36800000,705.29660000,30.60156000,180.0000000 0,125); //Police Maverick
AddStaticVehicle(528,-1587.91400000,747.54220000,-5.24218800,180.00000000,1,125); //FBI Truck
AddStaticVehicle(597,-1574.24600000,734.89500000,-5.24218800,90.00000000,1,125); //Police Car (SFPD)
AddStaticVehicle(601,-1573.34600000,712.00550000,-5.24218800,90.00000000,1,125); //S.W.A.T. Van
AddStaticVehicle(523,-1608.33700000,692.92430000,-5.24218800,180.00000000,1,125); //HPV1000
AddStaticVehicle(523,-1612.31500000,691.94350000,-5.24218800,180.00000000,1,125); //HPV1000
AddStaticVehicle(411,-1622.75300000,654.27040000,-5.24218800,90.00000000,0,0); //Infernus
Or like this:
Код:
AddStaticVehicleEx(497,-1680.36800000,705.29660000,30.60156000,180.0000000 0,125,1,900); //Police Maverick
AddStaticVehicleEx(528,-1587.91400000,747.54220000,-5.24218800,180.00000000,1,125,900); //FBI Truck
AddStaticVehicleEx(597,-1574.24600000,734.89500000,-5.24218800,90.00000000,1,125,900); //Police Car (SFPD)
AddStaticVehicleEx(601,-1573.34600000,712.00550000,-5.24218800,90.00000000,1,125,900); //S.W.A.T. Van
AddStaticVehicleEx(523,-1608.33700000,692.92430000,-5.24218800,180.00000000,1,125,900); //HPV1000
AddStaticVehicleEx(523,-1612.31500000,691.94350000,-5.24218800,180.00000000,1,125,900); //HPV1000
AddStaticVehicleEx(411,-1622.75300000,654.27040000,-5.24218800,90.00000000,0,0,900); //Infernus
Both ways should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)