SA-MP Forums Archive
wierd stringsize? - 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: wierd stringsize? (/showthread.php?tid=208010)



wierd stringsize? - KaleOtter - 07.01.2011

Hello,

When I send a message like this:
Код:
SendClientOOCMessage(playerid,"Hand it over to somebody[{FFCC33}/givesuitcase{CCFFCC}]. Deposit it to your bank account[{FFCC33}/depositsuitcase{CCFFCC}].");
The message doesn't show up ingame because the string is to short, here i show you my sendclientOOCmessage public:

Код:
forward SendClientOOCMessage(playerid,text[]);
public SendClientOOCMessageToAll(color[],text[])
{
	for(new playerid = 0; playerid < MaxPlayers; playerid++)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    format(pS[String],StringSize,"{FFFFFF}[OOC]{CCFFCC} %s",text);
		    SendClientMessage(playerid,White,pS[String]);
	    }
	}
	return 1;
}
The StringSize = 256. I already tried to set it higher but still it won't show up.
When I use the normal SendClientMessage it shows up...