Help - 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: Help (
/showthread.php?tid=609521)
Help -
CSLangdale - 13.06.2016
Hi this may seem like a silly question but i have tried a couple things to do it and they dont work
Код:
if(sscanf(params, "s[10]", give)) return SendClientMessage(playerid, COLOR_GREY, "[SERVER] /roadblock [1-9] 1=Small block 2=Medium Block 3=Big Block 4=Cone 5=Divert 6=Tresspassers sign 7=Line Closed 8=Police Tape 9=Flare");
At the minute this is all one line when it send the message but i was wondering how can i set it to show it on 2 or more lines? cause as it is some of the message goes of the page...
Re: Help -
saffierr - 13.06.2016
First of all, the 's' parameter is wrong, use the 'i' parameter if the usage is [1-9].
PHP код:
if(sscanf(params, "i", give))
{
SendClientMessage(playerid, COLOR_GREY, "[SERVER] /roadblock [1-9]");
SendClientMessage(playerid, COLOR_GREY, "1=Small block 2=Medium Block 3=Big Block 4=Cone 5=Divert 6=Tresspassers sign 7=Line Closed 8=Police Tape 9=Flare");
return 1;
}