14.10.2014, 21:15
no meu velocimetro o km/h comeзa com o 0 dai vai marcando 10, 50, 80, 180. como faзo para km/h comeзar a marcar com 000 e dai quando andar fica tipo assim 010, 080, 100, 180, como fazer isso, sou novato mesmo.
if(GetPlayerSpeed(i, true) >= 150)
{
format(str2,sizeof(str2),"~r~%d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
else if(kmh_anzahl >= 100)
{
format(str2,sizeof(str2),"~g~%d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
else if(kmh_anzahl >= 50)
{
format(str2,sizeof(str2),"~g~%d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
else
{
format(str2,sizeof(str2),"~g~%d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
if(GetPlayerSpeed(i, true) >= 150)
{
format(str2,sizeof(str2),"~r~%02d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
else if(kmh_anzahl >= 100)
{
format(str2,sizeof(str2),"~g~%02d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
else if(kmh_anzahl >= 50)
{
format(str2,sizeof(str2),"~g~%02d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
else
{
format(str2,sizeof(str2),"~g~%02d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}
if(GetPlayerSpeed(i, true) >= 0)
{
format(str2,sizeof(str2),"~r~%03d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}