Alles anzeigenIch habe ein Problem mit meinen Stats im Textdraw und zwar sind die werte alle 0 Wieso ?
if(StatsDrawOn[playerid] == 0)
{
new str[64];
format(str,64,"~g~Level:~w~ %d",PlayerInfo[playerid][Level]);
StatsDraw[0] = CreatePlayerTextDraw(playerid,525.000000, 125.000000,str);
PlayerTextDrawBackgroundColor(playerid,StatsDraw[0], 255);
PlayerTextDrawFont(playerid,StatsDraw[0], 1);
PlayerTextDrawLetterSize(playerid,StatsDraw[0], 0.400000, 0.949999);
PlayerTextDrawSetOutline(playerid,StatsDraw[0], 0);
PlayerTextDrawSetProportional(playerid,StatsDraw[0], 1);
PlayerTextDrawSetShadow(playerid,StatsDraw[0], 1);
PlayerTextDrawUseBox(playerid,StatsDraw[0], 1);
PlayerTextDrawBoxColor(playerid,StatsDraw[0], 101);
PlayerTextDrawTextSize(playerid,StatsDraw[0], 644.000000, 0.000000);
format(str,64,"~g~Bank:~w~ %d$",PlayerInfo[playerid][Bank]);
StatsDraw[1] = CreatePlayerTextDraw(playerid,525.000000, 136.900000,str);
PlayerTextDrawBackgroundColor(playerid,StatsDraw[1], 255);
PlayerTextDrawFont(playerid,StatsDraw[1], 1);
PlayerTextDrawLetterSize(playerid,StatsDraw[1], 0.400000, 0.949999);
PlayerTextDrawSetOutline(playerid,StatsDraw[1], 0);
PlayerTextDrawSetProportional(playerid,StatsDraw[1], 1);
PlayerTextDrawSetShadow(playerid,StatsDraw[1], 1);
PlayerTextDrawUseBox(playerid,StatsDraw[1], 1);
PlayerTextDrawBoxColor(playerid,StatsDraw[1], 101);
PlayerTextDrawTextSize(playerid,StatsDraw[1], 642.000000, 0.000000);
format(str,64,"~g~Handynr.:~w~ %d",PlayerInfo[playerid][Handy]);
StatsDraw[2] = CreatePlayerTextDraw(playerid,525.000000, 148.800000,str);
PlayerTextDrawBackgroundColor(playerid,StatsDraw[2], 255);
PlayerTextDrawFont(playerid,StatsDraw[2], 1);
PlayerTextDrawLetterSize(playerid,StatsDraw[2], 0.400000, 0.949999);
PlayerTextDrawSetOutline(playerid,StatsDraw[2], 0);
PlayerTextDrawSetProportional(playerid,StatsDraw[2], 1);
PlayerTextDrawSetShadow(playerid,StatsDraw[2], 1);
PlayerTextDrawUseBox(playerid,StatsDraw[2], 1);
PlayerTextDrawBoxColor(playerid,StatsDraw[2], 101);
PlayerTextDrawTextSize(playerid,StatsDraw[2], 640.000000, 0.000000);
format(str,64,"~g~Payday:~w~ %i/60",PlayerInfo[playerid][PayTime]);
StatsDraw[3] = CreatePlayerTextDraw(playerid,525.000000, 160.600000,str);
PlayerTextDrawBackgroundColor(playerid,StatsDraw[3], 255);
PlayerTextDrawFont(playerid,StatsDraw[3], 1);
PlayerTextDrawLetterSize(playerid,StatsDraw[3], 0.400000, 0.949999);
PlayerTextDrawSetOutline(playerid,StatsDraw[3], 0);
PlayerTextDrawSetProportional(playerid,StatsDraw[3], 1);
PlayerTextDrawSetShadow(playerid,StatsDraw[3], 1);
PlayerTextDrawUseBox(playerid,StatsDraw[3], 1);
PlayerTextDrawBoxColor(playerid,StatsDraw[3], 101);
PlayerTextDrawTextSize(playerid,StatsDraw[3], 640.000000, 0.000000);
format(str,64,"~w~Mit /showpda ~g~an ~w~oder ~r~aus ~w~schalten");
StatsDraw[4] = CreatePlayerTextDraw(playerid,525.000000, 172.400000,str);
PlayerTextDrawBackgroundColor(playerid,StatsDraw[4], 255);
PlayerTextDrawFont(playerid,StatsDraw[4], 1);
PlayerTextDrawLetterSize(playerid,StatsDraw[4], 0.160000, 1.200000);
PlayerTextDrawSetOutline(playerid,StatsDraw[4], 0);
PlayerTextDrawSetProportional(playerid,StatsDraw[4], 1);
PlayerTextDrawSetShadow(playerid,StatsDraw[4], 1);
PlayerTextDrawUseBox(playerid,StatsDraw[4], 1);
PlayerTextDrawBoxColor(playerid,StatsDraw[4], 101);
PlayerTextDrawTextSize(playerid,StatsDraw[4], 640.000000, 0.000000);
SetTimerEx("StatsDraw", 3000, false, "i", playerid);//Timer
}
Mit dem Timer geht es leider nicht gibt es eine andere Möglichkeit ?