How to make a simple /help
#6

Код:
public SendPlayerFormattedText(playerid, const str[], define)
{
	new tmpbuf[256];
	format(tmpbuf, sizeof(tmpbuf), str, define);
	SendClientMessage(playerid, 0xFF004040, tmpbuf);
}
Is on lvdm,for not write 3 lines(new string,format(..),Send..)is uses SendPlayerFormattedText
_________________________________________________
put at the end of script ,this code:
Код:
forward SendPlayerFormattedText(playerid, const str[], define);
public SendPlayerFormattedText(playerid, const str[], define)
{
	new tmpbuf[256];
	format(tmpbuf, sizeof(tmpbuf), str, define);
	SendClientMessage(playerid, 0xFF004040, tmpbuf);
}
and put new cmd[256]; and cmd = strtok(cmdtext, idx); after OnPlayerCommandText(playerid,cmdtext[]){
_________________________________________________
for new warning(warning 209: function "OnPlayerCommandText" should return a value) :
Put after all commands return 0;}
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)