SA-MP Forums Archive
Doesnt show full 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: Doesnt show full string (/showthread.php?tid=397991)



Doesnt show full string - Sam5513 - 07.12.2012

Hello,

Im doing a helpme code. When the helper gets the message, he only sees part of the text string (example:Helpme from Sam:"Hello. How ar")
so, it gets cut in the begining. Here's the code:
Код:
        new helptext[90];
	new name[25];
	if(sscanf(params,"s",helptext))
	{
		return SendClientMessage(playerid,COLOR_RED,"usage: /helpme [text]");
	}
	new tcount=0;
	new helpstring[100];
	GetPlayerName(playerid,name,sizeof(name));
	format(helpstring,sizeof(helpstring),"Helpme from:%s(%i):%s",name,playerid,helptext);
	new testerinfo[35];
	format(testerinfo,sizeof(testerinfo),"To respond, type: /helprespond %i",playerid);
	for(new i=0;i<500;i++)
	{
		if(IsPlayerConnected(i))
		{
			if(PlayerInfo[i][pTester]==1)
			{
				tcount++;
				SendClientMessage(i,COLOR_YELLOW,helpstring);
				SendClientMessage(i,COLOR_GREEN,testerinfo);
			}
		}
	}