How to make a simple /help
#1

I'm trying to make a /help cmd and display a text, but it gives me some errors.

This is the full OnPlayerCommandText line:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/kill", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid,0.0);
		return 1;
	}
	
	if(!strcmp(cmdtext, "/ooc", true, 3))
	{
		new str[256], pname[256];
		GetPlayerName(playerid, pname, 256);
		format(str, 256, "(( Ooc: %s:%s ))", pname, cmdtext[4]);
		SendClientMessageToAll(0xFFFFFFAA, str);
 		return 1;
	}
	
		if(strcmp(cmd, "/help", true) == 0) {
		SendPlayerFormattedText(playerid,"Text",0);
		SendPlayerFormattedText(playerid,"Text",0);
		SendPlayerFormattedText(playerid,"Text",0);
		SendPlayerFormattedText(playerid,"Text", 0);
		return 1;
	}
}
Reply


Messages In This Thread
How to make a simple /help - by FreddeN - 23.05.2009, 14:43
Re: How to make a simple /help - by FreddeN - 23.05.2009, 14:43
Re: How to make a simple /help - by farse - 23.05.2009, 14:50
Re: How to make a simple /help - by Weirdosport - 23.05.2009, 14:53
Re: How to make a simple /help - by FreddeN - 23.05.2009, 15:05
Re: How to make a simple /help - by farse - 23.05.2009, 15:13
Re: How to make a simple /help - by FreddeN - 23.05.2009, 16:02
Re: How to make a simple /help - by FreddeN - 23.05.2009, 16:22
Re: How to make a simple /help - by Ignas1337 - 23.05.2009, 17:11
Re: How to make a simple /help - by .::: Ecko :::. - 23.05.2009, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)