[Ajuda] TextDraw
#5

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);
}
Reply


Messages In This Thread
TextDraw - by MoonRey - 08.09.2013, 14:28
Re: TextDraw - by smiiir - 08.09.2013, 14:41
Re: TextDraw - by MoonRey - 08.09.2013, 14:47
Re: TextDraw - by smiiir - 08.09.2013, 14:47
Re: TextDraw - by MoonRey - 08.09.2013, 14:58
Re: TextDraw - by smiiir - 08.09.2013, 15:09
Re: TextDraw - by WLSF - 08.09.2013, 15:11
Re: TextDraw - by MoonRey - 08.09.2013, 15:12
Re: TextDraw - by smiiir - 08.09.2013, 15:14
Re: TextDraw - by WLSF - 08.09.2013, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)