05.05.2011, 17:35
I have problem with creating my txtdraw string (time string) and heres my code and I tried it like this but nothing happens....
there xD
pawn Код:
new Text:Timerr;
new Seconds = 59;
pawn Код:
Timerr = TextDrawCreate(11.000000, 173.000000,"minute!!");
TextDrawAlignment(Timerr,0);
TextDrawBackgroundColor(Timerr,0x000000ff);
TextDrawFont(Timerr,1);
TextDrawLetterSize(Timerr,1.699999,1.600000);
TextDrawColor(Timerr,0x00ff0099);
TextDrawSetOutline(Timerr,1);
TextDrawSetProportional(Timerr,1);
TextDrawSetShadow(Timerr,1);
pawn Код:
CMD:txttimer(playerid,params[])
{
SetTimerEx("Carcel",90000,0,"i",playerid);
return 1;
}
pawn Код:
forward Carcel(playerid);
public Carcel(playerid)
{
Seconds--;
new string[128];
format(string,sizeof(string)," %d Seconds",Seconds);
TextDrawSetString(Timerr,string);
}