how to add textdraw string? :o - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to add textdraw string? :o (
/showthread.php?tid=253271)
how to add textdraw string? :o -
the_zande - 05.05.2011
I have problem with creating my txtdraw string (time string) and heres my code and I tried it like this but nothing happens....
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);
}
there xD
Re: how to add textdraw string? :o -
AsSassINz - 05.05.2011
TextDrawShowForPlayer or TextDrawShowForAll
Re: how to add textdraw string? :o -
the_zande - 05.05.2011
it wont work :P
Re: how to add textdraw string? :o -
the_zande - 06.05.2011
bump... someone pls!!