How I can detect the string in a textdraw?
#1

I want to detect the string in a textdraw to do a special action, but I don't know how to, If you could explain me a bit, it's would be great.

exemple :
Код:
- if the text/number in a textdraw = 0
- sendclientmessage : (warning) x have take 0 dmg
Reply
#2

You can use a variable to this.

Ex:

pawn Код:
new Number = 5, VBString[16], PlayerText:TextD;

format(VBString, 16, "Number is : %d", Number);
TextD = CreatePlayerTextDraw(playerid, 240.0, 580.0, VBString);
PlayerTextDrawShow(playerid, TextD);

//

if(Number == 5)
    //Make this
else
    //Make this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)