Textdraws Messing up with TextDrawSetString
#1

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!


Reply
#2

I think it could be cuz of the "PhoneMenuOption[playerid]"

Why do u need a [playrid] there? Textdraws don\'t use playerid
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)