Server says command doesn't exist, but it still executes
#13

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
What I ment was that you add
pawn Код:
printf("DEBUG: 1");
After each line to see which line that fails.




EDIT: Also don't forget to do DEBUG: 1
DEBUG: 2
DEBUG: 3 etc etc.. So you don't just do DEBUG: 1 under each line since that would be impossible to know which one it was
Alright, I did that and it ended on this line:

pawn Код:
format(string, sizeof(string), "[AdminCMD] You have just spawned a %s.", GetVehicleName(vehid));
pawn Код:
//what "GetVehicleName(vehid)" is

stock GetVehicleName(vehicleid)
{
    new string[28];
    format(string, sizeof(string), "%s", VehicleNames[GetVehicleModel(vehicleid) - 400]);
    return string;
}
pawn Код:
//What I have for VehicleNames

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"
};
Reply


Messages In This Thread
Server says command doesn't exist, but it still executes - by DTV - 28.07.2014, 03:07
Re: Server says command doesn't exist, but it still executes - by Don_Cage - 28.07.2014, 03:36
Re: Server says command doesn't exist, but it still executes - by DTV - 28.07.2014, 19:00
Re: Server says command doesn't exist, but it still executes - by Blademaster680 - 28.07.2014, 19:03
Re: Server says command doesn't exist, but it still executes - by DaniceMcHarley - 28.07.2014, 19:08
Re: Server says command doesn't exist, but it still executes - by Dignity - 29.07.2014, 05:22
Re: Server says command doesn't exist, but it still executes - by Konstantinos - 29.07.2014, 08:58
Re: Server says command doesn't exist, but it still executes - by Jefff - 31.07.2014, 21:27
Re: Server says command doesn't exist, but it still executes - by Stanford - 31.07.2014, 21:30
Re : Server says command doesn't exist, but it still executes - by ManuelNeuer - 31.07.2014, 21:31
Re: Server says command doesn't exist, but it still executes - by Don_Cage - 31.07.2014, 21:39
Re: Server says command doesn't exist, but it still executes - by DaniceMcHarley - 31.07.2014, 23:26
Re: Server says command doesn't exist, but it still executes - by DTV - 31.07.2014, 23:54
Re: Server says command doesn't exist, but it still executes - by Basssiiie - 01.08.2014, 02:27
Re: Server says command doesn't exist, but it still executes - by Don_Cage - 01.08.2014, 07:55
Re: Server says command doesn't exist, but it still executes - by Konstantinos - 01.08.2014, 09:11
Re: Server says command doesn't exist, but it still executes - by dirigent00 - 01.08.2014, 10:23
Re: Server says command doesn't exist, but it still executes - by DTV - 03.08.2014, 22:38

Forum Jump:


Users browsing this thread: 1 Guest(s)