Firess0 1 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 ako mam cez format zistiť id alebo lepšie by bol nazov auta a dať to dotextdraw ?? do textdraw to viem dať ale ako zistiť ?? Link to comment Share on other sites More sharing options...
0 Lukasz 336 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 (upraveno) format neslouží na zjišťování id vozidla. Na to máš jiné funkce nebo způsoby. Na jména si sežeň nebo udělej pole, které bude obsahovat jména všech vozidel. Za index pak dosazuj vehicle model (GetVehicleModel(..)) - 400 Edited 17. Říjen, 2015 by Lukasz Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 17. Říjen, 2015 Author Share Odesláno: 17. Říjen, 2015 to ako ?? Link to comment Share on other sites More sharing options...
0 mxco 55 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 Smaž pawno plsky Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 17. Říjen, 2015 Author Share Odesláno: 17. Říjen, 2015 pls daj kod Link to comment Share on other sites More sharing options...
0 ATomas 288 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 (upraveno) new Vozidlo[][] = { "landstalker", "bravura", .... }; format(string,sizeof(string),"Vozidlo: %s",Vozidlo[GetVehicleModel(vehicleid)-400]); Edited 17. Říjen, 2015 by ATomas Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 Mohl by jsi se alespoň trochu posnažit přijít na to sám, když se to dá najít na první odkaz na googlu. 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" }; stock GetVehicleName(vehicleid) { format(String,sizeof(String),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]); return String; } GetVehicleName ti vrátí string kterej obsahuje název auta. Link to comment Share on other sites More sharing options...
0 ATomas 288 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 (upraveno) Jestli ti napise ze mu to pise "error undefined symbol String" tak by to pawno fakt mel smazat Jinak to je zlozvyk z java psat String s velkym S Edited 17. Říjen, 2015 by ATomas Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 18. Říjen, 2015 Author Share Odesláno: 18. Říjen, 2015 diki new getvehn[50]; format(getvehn, sizeof(getvehn), "Auto: %s", GetVehicleName(vehicleid)); SCM(playerid, zlta, getvehn); error 017: undefined symbol "vehicleid" Link to comment Share on other sites More sharing options...
0 Lukasz 336 Odesláno: 18. Říjen, 2015 Share Odesláno: 18. Říjen, 2015 new vehicleid = MAX_PLAYER_NAME + MAX_PLAYERS - 458; Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 18. Říjen, 2015 Author Share Odesláno: 18. Říjen, 2015 C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(98) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(369) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(374) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(399) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(404) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(450) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(455) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(460) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(505) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(510) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Olik\Desktop\pawn\filterscripts\nove.pwn(656) : warning 217: loose indentation Link to comment Share on other sites More sharing options...
0 vladasavel 26 Odesláno: 18. Říjen, 2015 Share Odesláno: 18. Říjen, 2015 (upraveno) ukaz si z tebe jen vystřelil a povedlo se mu to..i já se zasmál.mám pár rad pro tebe1) udělej to co ti napsal mxco2) nauč se používat hlavu pokud nechceš přijmout bod 1)3) používej google než sem napíšeš help.když do google napíšeš undefined symbol vehicle id tak ti vyjede new vehicleid = GetPlayerVehicleID(playerid); opravdu zkus použíavt hlavu a google..ano já taky začínal..ale i tak než jsem napsal help tak jsem prvně použil google...ano google občas nepomůže ale ve většině tvych helpu by si našel odpovědi na google.. Edited 18. Říjen, 2015 by vladasavel Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 18. Říjen, 2015 Share Odesláno: 18. Říjen, 2015 new vehicleid = MAX_PLAYER_NAME + MAX_PLAYERS - 458; ~> Docela pěkné, ale zjednodušíme mu to, když to nechápe, ne? #define vehicleid (MAX_VEHICLES) Link to comment Share on other sites More sharing options...
Dotaz
Firess0 1
ako mam cez format zistiť id alebo lepšie by bol nazov auta a dať to dotextdraw ?? do textdraw to viem dať ale ako zistiť ??
Link to comment
Share on other sites
12 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now