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);
}
}
}