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


Messages In This Thread
Using function keys in string - by Anteino - 17.04.2011, 12:59
Re: Using function keys in string - by Vince - 17.04.2011, 13:02
Re: Using function keys in string - by Anteino - 17.04.2011, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)