[Ajuda] km/h - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] km/h (
/showthread.php?tid=541853)
km/h -
Vinicin - 14.10.2014
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.
Re: km/h -
PT - 14.10.2014
se estiver %02d mude para %03d so vendo o codigo poderemos ajudar.
Re: km/h -
Vinicin - 14.10.2014
olha como estб
pawn Код:
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);
}
Re: km/h -
connork - 14.10.2014
pawn Код:
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);
}
Re: km/h -
PT - 14.10.2014
pawn Код:
if(GetPlayerSpeed(i, true) >= 0)
{
format(str2,sizeof(str2),"~r~%03d",GetPlayerSpeed(i, true));
TextDrawSetString(kmh[i], str2);
}