Textdraws Messing up with TextDrawSetString - 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: Textdraws Messing up with TextDrawSetString (
/showthread.php?tid=114002)
Textdraws Messing up with TextDrawSetString -
NeRoSiS - 17.12.2009
Hey,
I don\'t often post here for help, so thanks anyone who can/does help me.
Okay, when I first create the textdraw it has this string.
"~b~Option 1~w~~n~Option 2~n~Option 3"
When I use textdrawsetstring I use this string.
"~b~%s~w~~n~%s~n~%s" the referenced strings should be "Calls", "Voicemail" and "Turn off".
As you can see there is hardly any difference in the output, please note that the textdraw is fine before I use setstring.
Code:
format(PhoneMenuString,sizeof(PhoneMenuString),"~b~%s~w~~n~%s~n~%s","Calls", "Voicemail","Turn Off");
TextDrawSetString(PhoneMenuOption[playerid],PhoneMenuString);
Theres the code. Also i\'v noticed the text for the radio stations at the top is fucking up, for example "KDST" ends up as "K D% 0S T"(Or somethig like that)
Thanks!
Re: Textdraws Messing up with TextDrawSetString -
Tigerbeast11 - 17.12.2009
I think it could be cuz of the "PhoneMenuOption[playerid]"
Why do u need a [playrid] there? Textdraws don\'t use playerid
Re: Textdraws Messing up with TextDrawSetString -
NeRoSiS - 17.12.2009
Quote:
Originally Posted by Tigerbeast11
I think it could be cuz of the "PhoneMenuOption[playerid]"
Why do u need a [playrid] there? Textdraws don\'t use playerid
|
It\'s to make the variable per player, meaning each players phone strings can say different things. I appreciate you trying to help, but dont\' when you don\'t know. Thanks anyway though.