using KEY_SUBMISSION in a 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)
+--- Thread: using KEY_SUBMISSION in a string (
/showthread.php?tid=454979)
using KEY_SUBMISSION in a string -
S0n1COwnsYou - 31.07.2013
as the title says, using this fails.
pawn Код:
new Format[128];
format(Format, 128, "[INFO] {FFFFFF}Press {FF0000}%s {FFFFFF}To View The Vehicle Options.",KEY_SUBMISSION);
SendClientMessage(playerid, SexyBlue, Format);
Re: using KEY_SUBMISSION in a string -
Djole1337 - 31.07.2013
Why would you do that? KEY_SUBMISSION is defined by an number.
Simply send them message like
pawn Код:
SendClientMessage(playerid, -1, "[INFO] {FFFFFF}Press {FF0000}2 / NUM / + {FFFFFF}To View The Vehicle Options.");
Respuesta: using KEY_SUBMISSION in a string -
JustBored - 31.07.2013
The keys are defined as numbers, they are just macros. I think you have to do this:
pawn Код:
SendClientMessage(playerid, SexyBlue, "[INFO] {FFFFFF}Press {FF0000} '2' {FFFFFF}To View The Vehicle Options.");