Using function keys in string - 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: Using function keys in string (
/showthread.php?tid=249152)
Using function keys in string -
Anteino - 17.04.2011
With
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?
Re: Using function keys in string -
Vince - 17.04.2011
Only gametext and textdraws support this. I'm running into the same problem myself. :/
120 seconds waiting time, ffs! Again?
Re: Using function keys in string -
Anteino - 17.04.2011
Quote:
Originally Posted by Vince
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