Textdraw doesn't show up
#1

Why doesn't the TextDraw, doesn't show up??

pawn Код:
new Text:TimeTD;
new Seconds = 59;
new Minutes = 9;
pawn Код:
public OnGameModeInit()
{
SetTimer("SecondsTimer", 1000, true);
SetTimer("MinutesTimer", 60000, true);
SetTimer("SecondsReset",61000,true);
Seconds = 59;
Minutes = 9;
TimeTD = TextDrawCreate(11.000000,273.000000,"~g~Minutes : 15 ,,, Seconds : 60");
TextDrawAlignment(TimeTD,0);
TextDrawBackgroundColor(TimeTD,0x000000ff);
TextDrawFont(TimeTD,1);
TextDrawLetterSize(TimeTD,0.699999,1.600000);
TextDrawColor(TimeTD,0x00ff0099);
TextDrawSetOutline(TimeTD,1);
TextDrawSetProportional(TimeTD,1);
TextDrawSetShadow(TimeTD,1);
return 1;
}
pawn Код:
forward SecondsTimer();
public SecondsTimer()
{
Seconds--;
new string[128];
format(string,sizeof(string),"~g~Minutes : %d ,,,, Seconds : %d",Minutes,Seconds);
TextDrawSetString(TimeTD,string);
return 1;
}
forward MinutesTimer(playerid);
public MinutesTimer(playerid)
{
Minutes--;
new string[128];
format(string,sizeof(string),"~g~Minutes : %d ,,,, Seconds : %d",Minutes,Seconds);
TextDrawSetString(TimeTD,string);
return 1;
}
forward SecondsReset();
public SecondsReset()
{
new string[128];
format(string,sizeof(string),"~g~Minutes : %d ,,,, Seconds : %d",Minutes,Seconds);
TextDrawSetString(TimeTD,string);
Seconds = 60;
return 1;
}
IT DOESN'T GIVE ME ERRORS WHEN I COMPILE
Reply
#2

I dont see a TextDrawShorForAll or a TextDrawShowForPlayer :P ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)