TextDrawCreate help
#1

As what kind of variable does the command TextDrawCreate return its id?
i.e is the variable TextDraw in
PHP код:
new Text:TextDraw
TextDraw 
TextDrawCreate(228.800018379.306640"TextDraw"); 
a string or interger or float or anything?

I have tried formatting it with %s %d %i %f and all but I get the tag mismatch warning.
Reply
#2

Put a _: tag before it when you format it.
Reply
#3

No luck friend...
Reply
#4

Show me what you did. I just tested it with a player textdraw.

Код:
CMD:testff(playerid, params[])
{
	new	str[128];
	
	format(str, sizeof(str), "%d", _:asdasdasd_PTD[playerid][0]); 
	SendClientMessage(playerid, -1, str);
	return 1;
}
Removing the _: returns a tag mismatch.
Reply
#5

Thankyou..you saved the day!

I previously did
PHP код:
format(strsizeof(str), "_:%d",asdasdasd_PTD[playerid][0]); 
My bad...
I'm a newbie, still learning.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)