Where do I declare my gamemode?
#8

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
	return 0;
}
You have this code 2 times if your making another command all you do is
when adding another command add it under public on play commandtext and it should do the trick so remove if you have more than 1 ublic on player command text
For example
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}

         if (strcmp("/mycommand2", cmdtext, true, 10) == 0)
	{
		// Do something herefg
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
Where do I declare my gamemode? - by Coltmaster - 25.04.2013, 23:14
Re: Where do I declare my gamemode? - by [L]azy[H]aze - 25.04.2013, 23:15
Re: Where do I declare my gamemode? - by Coltmaster - 25.04.2013, 23:17
Re: Where do I declare my gamemode? - by [L]azy[H]aze - 25.04.2013, 23:19
Re: Where do I declare my gamemode? - by Coltmaster - 25.04.2013, 23:27
Re: Where do I declare my gamemode? - by [L]azy[H]aze - 25.04.2013, 23:28
Re: Where do I declare my gamemode? - by Coltmaster - 25.04.2013, 23:30
Re: Where do I declare my gamemode? - by [L]azy[H]aze - 25.04.2013, 23:33
Re: Where do I declare my gamemode? - by Coltmaster - 25.04.2013, 23:38
Re: Where do I declare my gamemode? - by [L]azy[H]aze - 25.04.2013, 23:42

Forum Jump:


Users browsing this thread: 2 Guest(s)