What wrong here ? :X
#6

Quote:
Originally Posted by Babul
Посмотреть сообщение
iam sure this line
pawn Код:
format(lstring,sizeof(lstring),"~b~Vehicle: ~w~%s~n~~b~Health: ~w~%.2f~n~~b~Gps: ~w~%s~n~%sKM/H: ~w~~n~%sNitro:",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,LuxZone,MPH_KPH_Color,MPH_KPH_Color);
causes it.
or better: this part:
pawn Код:
LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400]
get the players vehicle id, then its model, subtract 400. used as pointer into that array.
try to add a debug print at the IsPlayerInAnyVehicle() to make sure that the vehicle(model) wont return 0 (cell [0-400] as result).
But what is the problam?
Reply


Messages In This Thread
What wrong here ? :X - by tal_peretz - 05.03.2012, 13:31
Re: What wrong here ? :X - by SuperViper - 05.03.2012, 14:47
Re: What wrong here ? :X - by tal_peretz - 05.03.2012, 15:04
Re: What wrong here ? :X - by Konstantinos - 05.03.2012, 15:06
Re: What wrong here ? :X - by Babul - 05.03.2012, 16:38
Re: What wrong here ? :X - by tal_peretz - 05.03.2012, 19:20
Re: What wrong here ? :X - by Babul - 06.03.2012, 08:38
Re: What wrong here ? :X - by tal_peretz - 06.03.2012, 14:07
Re: What wrong here ? :X - by SpiritEvil - 06.03.2012, 14:19
Re: What wrong here ? :X - by tal_peretz - 06.03.2012, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)