05.07.2012, 20:52
But why these bots?
and with crash detect!
[23:59:27] [debug] Run time error 4: "Array index out of bounds"
[23:59:27] [debug] Accessing element at negative index -400
[23:59:27] [debug] AMX backtrace:
[23:59:27] [debug] #0 000932a8 in public Kilometraj () from (SE).amx
[23:59:43] [death] nGen.SoNNy died 255
and with crash detect!
[23:59:27] [debug] Run time error 4: "Array index out of bounds"
[23:59:27] [debug] Accessing element at negative index -400
[23:59:27] [debug] AMX backtrace:
[23:59:27] [debug] #0 000932a8 in public Kilometraj () from (SE).amx
[23:59:43] [death] nGen.SoNNy died 255
pawn Code:
fc Kilometraj()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerInAnyVehicle(i) && IsPlayerConnected(i) && KilometrajStats[i] == 1)
{
new vehicleid = GetPlayerVehicleID(i), strg1[256], strg2[256];
new speedysor=GetPlayerSpeed(i,true);
format(strg1, sizeof(strg1), "~b~~h~KM/h: ~w~%d", speedysor);
format(strg2, sizeof(strg2), " ` ~r~~h~Vehicle: ~w~%s", VehicleName1[GetVehicleModel(vehicleid)-400]);
TextDrawSetString(SFSSpeedo1[i], strg1);
TextDrawSetString(SFSSpeedo2[i], strg2);
}
}
return ( 1 );
}
pawn Code:
new VehicleName1[][] = { // (Colors)
"~g~~h~L~w~andstalker", "~g~~h~B~w~ravura", "Buffalo", "Linerunner", "Perennial", "Sentinel",
"~g~~h~D~w~umper", "~g~~h~F~w~iretruck" , "Trashmaster" , "Stretch", "Manana", "~g~~h~I~w~nfernus",
"~g~~h~V~w~oodoo", "~g~~h~P~w~ony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
"~g~~h~E~w~speranto", "~g~~h~T~w~axi", "Washington", "Bobcat", "Mr Whoopee", "BF Injection",
"~g~~h~H~w~unter", "~g~~h~P~w~remier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
"~g~~h~R~w~hino", "~g~~h~B~w~arracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
"~g~~h~S~w~tallion", "~g~~h~R~w~umpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
"~g~~h~S~w~qualo", "~g~~h~S~w~easparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
"~g~~h~R~w~eefer", "~g~~h~T~w~ropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
"~g~~h~S~w~kimmer", "~g~~h~P~w~CJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
"~g~~h~O~w~ceanic", "~g~~h~S~w~anchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
"~g~~h~H~w~ermes", "~g~~h~S~w~abre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
"~g~~h~B~w~urrito", "~g~~h~C~w~amper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
"~g~~h~R~w~ancher", "FBI ~g~~h~R~w~ancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
"~g~~h~B~w~lista Compact", "~g~~h~P~w~olice ~g~M~w~averick", "Boxville", "Benson", "Mesa", "RC Goblin",
"~g~~h~H~w~otring Racer", "~g~~h~H~w~otring ~g~~h~R~w~acer", "Bloodring Banger", "Rancher", "Super GT",
"~g~~h~E~w~legant", "~g~~h~Journey", "Bike", "Mountain Bike", "Beagle", "Cropdust", "Stunt",
"~g~~h~T~w~anker", "~g~~h~RoadTrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
"~g~~h~F~w~CR-900", "~g~~h~N~w~RG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona",
"~g~~h~F~w~BI Truck", "~g~~h~Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington",
"~g~~h~S~w~lamvan", "~g~~h~Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover",
"~g~~h~S~w~adler", "~g~~h~Firetruck", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa",
"~g~~h~S~w~unrise", "~g~~h~Merit", "Utility Truck", "Nevada", "Yosemite", "Windsor", "Monster",
"~g~~h~M~w~onster", "~g~~h~Uranus", "Jester", "Sultan", "Stratum", "~g~~h~E~w~legy", "Raindance", "RCTiger",
"~g~~h~F~w~lash", "~g~~h~Tahoma", "Savanna", "Bandito", "Freight", "Trailer", "Kart", "Mower",
"~g~~h~D~w~une", "~g~~h~Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley",
"~g~~h~S~w~tafford", "~g~~h~BF-400", "Newsvan", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros",
"~g~~h~H~w~otdog", "~g~~h~Club", "Trailer", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch",
"~g~~h~P~w~olice Car (LSPD)", "~g~~h~Police Car (SFPD)", "Police Car (LVPD)", "Police Ranger",
"~g~~h~P~w~icador", "~g~~h~S.W.A.T. Van", "Alpha", "Phoenix", "Glendale", "Sadler",
"~g~~h~L~w~uggage Trailer", "~g~~h~Luggage Trailer", "Stair Trailer", "Boxville", "Farm Plow",
"~g~~h~U~w~tility Trailer"
};