Hallo Leute
Bei mir wird das TextdrawCreate nicht angezeigt obwohl ich alles gemacht habe hier mal die Code schnipsel:
new Text:TACHO0;
new Text:TACHO1;
new Text:TACHO2;
new Text:TACHO3;
new Text:TACHO4;
new Text:TACHO5;
//TACHO!
TACHO0 = TextDrawCreate(340.000000, 375.000000, "BENZIN");
TextDrawBackgroundColor(TACHO0, 255);
TextDrawFont(TACHO0, 1);
TextDrawLetterSize(TACHO0, 0.589999, 2.699999);
TextDrawColor(TACHO0, -1);
TextDrawSetOutline(TACHO0, 1);
TextDrawSetProportional(TACHO0, 1);
TACHO1 = TextDrawCreate(325.000000, 351.000000, "KM/H");
TextDrawBackgroundColor(TACHO1, 255);
TextDrawFont(TACHO1, 1);
TextDrawLetterSize(TACHO1, 0.639998, 2.499999);
TextDrawColor(TACHO1, -1);
TextDrawSetOutline(TACHO1, 1);
TextDrawSetProportional(TACHO1, 1);
TACHO2 = TextDrawCreate(236.000000, 430.000000, "ZUSTAND");
TextDrawBackgroundColor(TACHO2, 255);
TextDrawFont(TACHO2, 1);
TextDrawLetterSize(TACHO2, 0.500000, 1.000000);
TextDrawColor(TACHO2, 209060095);
TextDrawSetOutline(TACHO2, 0);
TextDrawSetProportional(TACHO2, 1);
TextDrawSetShadow(TACHO2, 1);
TACHO3 = TextDrawCreate(237.000000, 343.000000, "_");
TextDrawBackgroundColor(TACHO3, 255);
TextDrawFont(TACHO3, 1);
TextDrawLetterSize(TACHO3, -0.439999, 10.400000);
TextDrawColor(TACHO3, -1);
TextDrawSetOutline(TACHO3, 0);
TextDrawSetProportional(TACHO3, 1);
TextDrawSetShadow(TACHO3, 1);
TextDrawUseBox(TACHO3, 1);
TextDrawBoxColor(TACHO3, 960051513);
TextDrawTextSize(TACHO3, 417.000000, -1.000000);
TACHO4 = TextDrawCreate(317.000000, 429.000000, "///////////");
TextDrawBackgroundColor(TACHO4, 255);
TextDrawFont(TACHO4, 1);
TextDrawLetterSize(TACHO4, 0.500000, 1.000000);
TextDrawColor(TACHO4, 209060095);
TextDrawSetOutline(TACHO4, 0);
TextDrawSetProportional(TACHO4, 1);
TextDrawSetShadow(TACHO4, 1);
TACHO5 = TextDrawCreate(289.000000, 340.000000, "Soul City Life");
TextDrawBackgroundColor(TACHO5, 255);
TextDrawFont(TACHO5, 0);
TextDrawLetterSize(TACHO5, 0.500000, 1.000000);
TextDrawColor(TACHO5, -16776961);
TextDrawSetOutline(TACHO5, 0);
TextDrawSetProportional(TACHO5, 1);
TextDrawSetShadow(TACHO5, 1);
public VehStateCheck(playerid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
{
if(M_Bot[i][PAFK] == 0)
{
new Float:health,vehicleid = GetPlayerVehicleID(i),string[256],Float:value,Float:x,Float:y,Float:z;
GetPlayerPos(i, x, y, z);
GetVehicleSpeed(GetPlayerVehicleID(i),value);
GetVehicleHealth(vehicleid,health);
if (health >= 900 && health <= 1000)
{
format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~%d~w~ ~n~~w~%d ~b~/~w~ %d~r~ ~n~~g~%s",floatround(value, floatround_floor),Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)),VehicleName[GetVehicleModel(vehicleid)-400]);
GameTextForPlayer(i,string,850,3);
TextDrawShowForPlayer(playerid,TACHO0);
TextDrawShowForPlayer(playerid,TACHO1);
TextDrawShowForPlayer(playerid,TACHO2);
TextDrawShowForPlayer(playerid,TACHO3);
TextDrawShowForPlayer(playerid,TACHO4);
TextDrawShowForPlayer(playerid,TACHO5);
Es wird leider trotzdem nicht angezeigt wenn ich im Auto sitze -.-