What Am I doing wrong?
#5

Quote:
Originally Posted by Pandabeer1337
where did you put new string[128];
Under OnPlayerCommandText:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[128];
new idx;

	if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
	{
	  if(!cmdtext[3]) return SendClientMessage(playerid, 0xFF0000FF, "USAGE/UŻYCIE: /me [action/akcja]");
	  new string[128], name[16];
	  GetPlayerName(playerid, name, sizeof(name));
	  format(string, 128, "*** %s %s", name, cmdtext[4]);
	  SendClientMessageToAll(COLOR_LIGHTGREEN, string);
	  return 1;
	}
Reply


Messages In This Thread
What Am I doing wrong? - by Puzi - 30.05.2009, 13:45
Re: What Am I doing wrong? - by Think - 30.05.2009, 13:48
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 13:49
Re: What Am I doing wrong? - by Think - 30.05.2009, 13:50
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 13:53
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:03
Re: What Am I doing wrong? - by member - 30.05.2009, 14:07
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:34
Re: What Am I doing wrong? - by Puzi - 30.05.2009, 14:47

Forum Jump:


Users browsing this thread: 2 Guest(s)