Can't see Text - 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: Can't see Text (
/showthread.php?tid=265261)
Can't see Text -
DragonYancy - 30.06.2011
I did this pawn code...
Код:
public ScoreUpdate()
{
new string[100];
TextDrawHideForAll(Text:scores);
format(string,sizeof(string),"~b~Cops:%d ~l~Hitman:%d ~y~Vagos:%d", Copscore,Hitmanscore,Vagosscore);
scores = TextDrawCreate(271.000000,400.000000,string);
TextDrawTextSize(scores,200.000000,0.000000);
TextDrawSetOutline(scores,0);
TextDrawSetShadow(scores,0);
TextDrawShowForAll(Text:scores);
}
No errors, But I can't see the text in game.. Why?
Re: Can't see Text -
CmZxC - 30.06.2011
do you have ScoreUpdate used on anywhere else besides this?
Re: Can't see Text -
[NoV]LaZ - 30.06.2011
That might be because you're hiding the textdraw before you format the string.
Re: Can't see Text -
DragonYancy - 30.06.2011
I didn't use ScoreUpdate...
I just have
Код:
// FORWARDS
forward ScoreUpdate();
this at start of my script
Re: Can't see Text -
DragonYancy - 30.06.2011
Quote:
Originally Posted by [NoV]LaZ
That might be because you're hiding the textdraw before you format the string.
|
So how can I fix it?
Re: Can't see Text -
Sasino97 - 30.06.2011
Quote:
Originally Posted by DragonYancy
I didn't use ScoreUpdate...
I just have
Код:
// FORWARDS
forward ScoreUpdate();
this at start of my script
|
OnGameModeInit:
Код:
SetTimer("ScoreUpdate", 1000, true);
Re: Can't see Text -
DragonYancy - 30.06.2011
THANK YOU SOOO MUCH!