Little Problem
#1

Hi All, I have a problem whit a very simple command, but i'm very n00b.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     new idx;
	new cmd[256];
	cmd=strtok(cmdtext,idx);
	if(strcmp(cmd, "/help", true, 10) == 0)
	{
		SendClientMessage(playerid, COLOR_LIGHTRED, "* * * * * AIUTI * * * * *");
		SendClientMessage(playerid, COLOR_ORANGE, "Per la lista comandi digita /cmds");
		SendClientMessage(playerid, COLOR_ORANGE, "Per gli obiettivi digita /obiettivi");
		SendClientMessage(playerid, COLOR_ORANGE, "Per i teleport digita /tele");
		SendClientMessage(playerid, COLOR_ORANGE, "Per i crediti digita /crediti");
  	     return 1;
	}
	return 0;
}
The commands don't work and I have no error. Please Help!
Reply


Messages In This Thread
Little Problem - by DiEx - 13.07.2009, 14:33
Re: Little Problem - by woot - 13.07.2009, 14:40
Re: Little Problem - by abhinavdabral - 13.07.2009, 15:03
Re: Little Problem - by dice7 - 13.07.2009, 15:07
Re: Little Problem - by abhinavdabral - 13.07.2009, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)