05.11.2010, 22:23
try this
pawn Код:
public PagrindinisTimer(){
for(new i=0;i<MAX_PLAYERES;i++){
if(IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER){
if(MasinosID != BMX && MasinosID != MTBIKE && MasinosID != BIKE) format(Stringas,65,"~r~Greitis: ~w~%ikm/h ~r~Degalai: ~w~%i ~n~ ",ZaidejoGreitis(ID),vehicleDB[MasinosID][gas]);
else format(Stringas,45,"~r~Greitis: ~w~%ikm/h",ZaidejoGreitis(ID));
TextDrawSetString(Spidometras[i],Stringas);
TextDrawShowForPlayer(i,Spidometras[i]);
}
}
}