SA-MP Forums Archive
Are Wrong. vehicles names - 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: Are Wrong. vehicles names (/showthread.php?tid=429479)



Are Wrong. vehicles names - DerickClark - 09.04.2013

Are Wrong. vehicles names

With Label.
it keep saying Landstalker
Код:
new VehicleNames[][] =
{
    "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
    "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
    "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
    "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
    "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
    "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
    "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
    "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
    "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
    "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
    "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
    "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
    "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
    "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
    "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin",
    "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
    "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",
    "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
    "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
    "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
    "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",
    "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
    "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
    "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
    "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
    "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
    "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
    "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
    "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
    "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
    "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
    "Tiller", "Utility Trailer"
};



Re: Are Wrong. vehicles names - SDraw - 09.04.2013

I don't know what you mean, but maybe you should use
PHP код:
VehicleNames[vehmodel-400]
Sample:
printf("Vehicle name is %s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); 



Re: Are Wrong. vehicles names - DerickClark - 09.04.2013

How i put it in here?
Код:
format(string, sizeof(string), "Owner: %s %s", AVehicleData[vid][Owner],VehicleNames[GetVehicleModel(vehicleid)]);



Re: Are Wrong. vehicles names - SDraw - 09.04.2013

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
How i put it in here?
format(string, sizeof(string), "Owner: %s %s", AVehicleData[vid][Owner],VehicleNames[GetVehicleModel(vehicleid)]);[/code]
PHP код:
format(stringsizeof(string), "Owner: %s %s"AVehicleData[vid][Owner],VehicleNames[GetVehicleModel(vehicleid)-400]); 
And is really 'vehicleid' valid ID of vehicle or not?


Re: Are Wrong. vehicles names - DerickClark - 09.04.2013

Код:
error 017: undefined symbol "vehmodel"
error 029: invalid expression, assumed zero
error 017: undefined symbol "code"
error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.



Re: Are Wrong. vehicles names - Riddick94 - 09.04.2013

pawn Код:
#define     GetVehicleName(%0)              VehicleNames[GetVehicleModel(%0) - 400]
Usage:
pawn Код:
GetVehicleName(vehicleid);
You can insert GetPlayerVehicleID(playerid); into vehicleid to get vehicle name which player currently driving.


Re: Are Wrong. vehicles names - DerickClark - 09.04.2013

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
pawn Код:
#define     GetVehicleName(%0)              VehicleNames[GetVehicleModel(%0) - 400]
Usage:
pawn Код:
GetVehicleName(vehicleid);
You can insert GetPlayerVehicleID(playerid); into vehicleid to get vehicle name which player currently driving.
it closes Pawno.


Re: Are Wrong. vehicles names - Riddick94 - 09.04.2013

pawn Код:
format(string, sizeof(string), "Owner: %s %s", AVehicleData[vid][Owner], GetVehicleName(vehicleid));
This is how your format looks like?


Re: Are Wrong. vehicles names - DerickClark - 09.04.2013

it mess up my textdraw...