format question - 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: format question (
/showthread.php?tid=272752)
format question -
TheArcher - 29.07.2011
Hello i want to put the details of a ban player but i want To show the player the Text under each other. For exemple
format(largestring, sizeof(largestring), "You are currently banned from this server. User:%s IP:%s Time:%s Admin:%s Reason:%s", Name2, PIP, estring, Pname, string);
SendClientMessage(playerid, mycolor, largestring);
I want like
SendClientMessage(bal bla "here the user: ");
SendClientMessage(bal bla "here the IP: ");
etc..
so i have to use many times format then SendClientMessage ? Beacuse i use a general string which is largestring that have 400 array size.
Re: format question -
Calgon - 29.07.2011
You should simply just format your string for each new message, it's a lot easier.
Re: format question -
TheArcher - 29.07.2011
Quote:
Originally Posted by Calg00ne
You should simply just format your string for each new message, it's a lot easier.
|
How many size do you suggest for that?
Re: format question -
Calgon - 29.07.2011
The max. character amount you can send with each message is 128, so declare a string with 128 cells.