08.09.2013, 14:58
Eu achei uma coisa estranha, quando eu tirei o text pra tentar compilar, deu o mesmo erro, sу que em outra linha do Velocimetro e_e Nгo sei se ajuda, mas vou colocar o Sistema de Velocimetro inteiro:
pawn Код:
//Topo do GM
static Text:Velocimetro[MAX_PLAYERS];
new bool:Vel[MAX_PLAYERS];
forward VelUpdate();
//OnPlayerConnect
Velocimetro[playerid] = TextDrawCreate(11.000000,291.000000, " ");
TextDrawBackgroundColor(Velocimetro[playerid], 0x000000FF);
TextDrawFont(Velocimetro[playerid], 3);
TextDrawLetterSize(Velocimetro[playerid], 0.400000,1.300000);
TextDrawColor(Velocimetro[playerid], -1);
TextDrawSetOutline(Velocimetro[playerid], 1);
//OnPlayerUpdate
if(IsPlayerConnected(playerid))
{
if(dini_Int(file, "Velocimetro") == 1)
{
new string3[126];
format(string3, sizeof(string3), "Velocimetro: %i ~y~~h~KM/h",GetVehicleSpeed(playerid));
TextDrawSetString(Velocimetro[playerid],string3);
if(IsPlayerInAnyVehicle(playerid))
{
TextDrawShowForPlayer(playerid,Velocimetro[playerid]);
}
else
{
TextDrawHideForPlayer(playerid,Velocimetro[playerid]);
}
}
return 1;
}
//Final do GM
stock GetVehicleSpeed(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return 1;
new Float:vPos[3];
GetVehicleVelocity(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]);
return floatround((floatmul(floatsqroot(floatpower(vPos[0], 2.0) + floatpower(vPos[1], 2.0) + floatpower(vPos[2], 2.0)), 100.0) / 0.4463), floatround_floor);
}