getting the text between * *
#3

Код:
public OnPlayerText(playerid, text[])
{
	new string[128];
	format(string, 128, "%s", text);
	if(string[0] == '*')
	{
	  strdel(string, 0, 1);
	  strdel(string, strfind("*", string, true), strfind("*", string, true)+1);
	  //3d stuff
	}
	return 0;
}
Reply


Messages In This Thread
getting the text between * * - by aNdReSk - 21.06.2010, 03:13
Re: getting the text between * * - by mprofitt - 21.06.2010, 03:21
Re: getting the text between * * - by bigcomfycouch - 21.06.2010, 03:29
Re: getting the text between * * - by aNdReSk - 21.06.2010, 03:34
Re: getting the text between * * - by bigcomfycouch - 21.06.2010, 04:04

Forum Jump:


Users browsing this thread: 1 Guest(s)