04.04.2011, 00:17
й o seguinte eu queria um geito de arrumar esse velo q n aparece n intendo de text draw
Код:
no topo do gm new Text:Velo[MAX_PLAYERS]; logo abaixo... //Texdraws=========================================================================== //Info Serve for(new i=0; i<GetMaxPlayers(); i++){ gText3[i] = TextDrawCreate(0.0, 435, " "); TextDrawUseBox(gText3[i], true); TextDrawFont(gText3[i],1); TextDrawSetOutline(gText3[i], 1); TextDrawColor(gText3[i], -1); TextDrawBoxColor(gText3[i], 0x000000AA); TextDrawBackgroundColor(gText3[i], 30); TextDrawUseBox(gText3[i], true); gText2[i] = TextDrawCreate(500.00, 100.00, " "); TextDrawFont(gText2[i],1); TextDrawBackgroundColor(gText2[i], 255); TextDrawSetOutline(gText2[i], 1); TextDrawColor(gText2[i], -1); Velo[i] = TextDrawCreate(30,326, " "); TextDrawFont(Velo[i],3); TextDrawBackgroundColor(Velo[i], 255); TextDrawSetOutline(Velo[i], 2); TextDrawColor(Velo[i], -1); TextDrawShowForPlayer (i, Velo[i]); } mais abaixo // format(string, sizeof(string), "~n~~p~BMR RPG~n~~y~Scripter: THE~n~"); TextDrawSetString(gText2[i], string); // format(string, sizeof(string), " ~g~Up em:~w~%d/5 ~b~Nivel:~w~%d ~y~Faculdade:~w~%d ~p~Gasolina:~w~%d",dini_Int(file, "EXP"),dini_Int(file, "Level"),dini_Int(file, "Faculdade"),dini_Int(file, "Combustivel")); TextDrawSetString(gText3[i], string); TextDrawShowForPlayer(i, gText3[i]); // if(IsPlayerInAnyVehicle(i)){ new string3[256]; format(string3, sizeof(string3), " Gasolina: ~w~%d ",dini_Int(file, "Combustivel")); TextDrawSetString(Velo[i], string3); TextDrawShowForPlayer(i, Velo[i]); }else{ TextDrawHideForPlayer(i, Velo[i]); } new str[256]; if(GPS_Spawned[i] == 1) { format(str,sizeof(str)," ~n~~n~~w~GPS: ~b~%s", GetPlayerArea(i)); TextDrawSetString(gps[i], str); TextDrawShowForPlayer(i, gps[i]); } else { TextDrawHideForPlayer(i, gps[i]); } } } }