TextDrawCreate help - 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)
+--- Thread: TextDrawCreate help (
/showthread.php?tid=640901)
TextDrawCreate help -
Primes007 - 08.09.2017
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.800018, 379.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.
Re: TextDrawCreate help -
Kane - 08.09.2017
Put a _: tag before it when you format it.
Re: TextDrawCreate help -
Primes007 - 08.09.2017
No luck friend...
Re: TextDrawCreate help -
Kane - 08.09.2017
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.
Re: TextDrawCreate help -
Primes007 - 08.09.2017
Thankyou..you saved the day!
I previously did
PHP код:
format(str, sizeof(str), "_:%d",asdasdasd_PTD[playerid][0]);
My bad...
I'm a newbie, still learning.