Using function keys in string
#1

With
pawn Code:
GameTextForPlayer
you can print the actual key referring to a funtion, like
pawn Code:
GameTextForPlayer(playerid, "Press ~k~~TOGGLE_SUBMISSIONS~ to start submission.", 3000, 4);
will show "Press 2 to start submission" (if controls set to default).

If you use
pawn Code:
SendClientMessage(playerid, COLOR_WHITE, "Press ~k~~TOGGLE_SUBMISSIONS~ to start submission.");
the actual written text will be show and not "Press 2 to start submission." (if controls set to default). As not everyone has their keys set to default I can't say press 2 to start submission because that would cause confusion for players who haven't set their keys to default.

Anyone got a solution?
Reply
#2

Only gametext and textdraws support this. I'm running into the same problem myself. :/

120 seconds waiting time, ffs! Again?
Reply
#3

Quote:
Originally Posted by Vince
View Post
Only gametext and textdraws support this. I'm running into the same problem myself. :/

120 seconds waiting time, ffs! Again?
Well that sucks :P both xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)