Text Draw String??
#1

I want to create a text draw with a team kill counter... I am using this under OnPlayerDeath:

Код:
new tmpstr[50]; //Accommodate for string size
  	format(tmpstr,sizeof(tmpstr),"Grove: %d  Ballas:%d",GroveScore,BallasScore);
  	TextDrawSetString(scores,tmpstr);
Код:
new Text:scores
But I don't know how to use the TextDrawCreate function... I have the coordinates:
Код:
TextDrawCreate(350,400,"I don't know what to put here...")
Can someone please help me?
Reply
#2

You don't have to put anything in there since you reset the string with "TextDrawSetString". Just put that under OnGameMode/FilterScriptInit and you're done (don't forget to show the textdraw).
Reply
#3

So I could just do this:
Код:
TextDrawCreate(350,400,"")
Reply
#4

No, that would crash the server. Use a space or underscore to keep it simple.
Reply
#5

Oh, OK.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)