having some questions...
#2

The difrence between return 1 and return 0:
Return 1; (so u can add more script on to it for e.g.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/commands", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid,0xAA3333A,"find your command stuff here");
		return 1;
	}
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid,0xAA3333A,"Text");
		SendClientMessage(playerid,0xAA3333A,"Text");
		SendClientMessage(playerid,0xAA3333A,"Text");
		return 1;
       }
     return 0;
Return 0; ends that Public (cmd)
thats what it dose i think

im not to sure about the other on lol


hope it helps not much though i guess
Reply


Messages In This Thread
having some questions... - by agusfn20 - 27.07.2009, 02:59
Re: having some questions... - by [DD]FlameOFDeath - 27.07.2009, 03:02
Re: having some questions... - by Joe Staff - 27.07.2009, 04:50

Forum Jump:


Users browsing this thread: 1 Guest(s)