Hey, wieso wird meine Uhr nicht angezeigt? :O
Text:Uhr
//====// Uhrzeit //====//
new Text:Uhr;
new Text:Uhr;
OnGameModeInit
Uhr = TextDrawCreate(547.000000, 27.000000, "00:00:00");
TextDrawBackgroundColor(Uhr, 255);
TextDrawFont(Uhr, 1);
TextDrawLetterSize(Uhr, 0.369999, 2.800000);
TextDrawColor(Uhr, -1);
TextDrawSetOutline(Uhr, 0);
TextDrawSetProportional(Uhr, 1);
TextDrawSetShadow(Uhr, 1);
SetTimer("UpdateTime",1000,true);
TextDrawBackgroundColor(Uhr, 255);
TextDrawFont(Uhr, 1);
TextDrawLetterSize(Uhr, 0.369999, 2.800000);
TextDrawColor(Uhr, -1);
TextDrawSetOutline(Uhr, 0);
TextDrawSetProportional(Uhr, 1);
TextDrawSetShadow(Uhr, 1);
SetTimer("UpdateTime",1000,true);
UpdateTime
public UpdateTime()
{
new hour,minute,second, timestr[128];
gettime(hour,minute,second);
format(timestr,sizeof(timestr),"d:d:d",hour,minute,second);
TextDrawSetString(Uhr,timestr);
return 1;
}
{
new hour,minute,second, timestr[128];
gettime(hour,minute,second);
format(timestr,sizeof(timestr),"d:d:d",hour,minute,second);
TextDrawSetString(Uhr,timestr);
return 1;
}
OnPlayerSpawn
TextDrawShowForPlayer(playerid,Uhr);
Errors: Keine!