OnPlayerText
#1

Код:
if(strfind(text, "(", true) != -1)
	{
    new length = strlen(text);
	  while ((idx < length) && (text[idx] <= ' '))
    {
				idx++;
	  }
	  new offset = idx;
	  new result[64];
	  while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
	  {
				result[idx - offset] = text[idx];
				idx++;
	  }
	  result[idx - offset] = EOS;
    GetPlayerName(playerid, sendername, sizeof(sendername));
	  format(string, sizeof(string), "%s : (( %s ))", sendername, result);
	  ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
	  printf("%s", string);
		return 0;
	}
i got result like this:
name_surname : (( (text ))
Reply


Messages In This Thread
OnPlayerText - by Naruto4 - 28.11.2009, 17:21
Re: OnPlayerText - by miokie - 28.11.2009, 17:24
Re: OnPlayerText - by Naruto4 - 28.11.2009, 17:31
Re: OnPlayerText - by miokie - 28.11.2009, 17:33
Re: OnPlayerText - by UsaBoy91 - 28.11.2009, 17:38
Re: OnPlayerText - by Luka P. - 28.11.2009, 17:46
Re: OnPlayerText - by Naruto4 - 28.11.2009, 17:50
Re: OnPlayerText - by Luka P. - 28.11.2009, 17:58
Re: OnPlayerText - by Nero_3D - 28.11.2009, 18:05
Re: OnPlayerText - by Luka P. - 28.11.2009, 18:15

Forum Jump:


Users browsing this thread: 3 Guest(s)