return
#5

Also

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/teleport", cmdtext, true, 9) == 0)
	{
		if(IsPlayerAdmin(playerid))
		{
		  SetPlayerPos(playerid,0,0,0);
		  return 1;
			}
		else
		return 0;
	}
	return 0;
}
This code might give you an idea when to use return
Reply


Messages In This Thread
return - by _ReloadeD_ - 25.09.2009, 16:59
Re: return - by dice7 - 25.09.2009, 17:04
Re: return - by _ReloadeD_ - 25.09.2009, 18:10
Re: return - by MadeMan - 25.09.2009, 18:25
Re: return - by Desert - 25.09.2009, 18:39
Re: return - by _ReloadeD_ - 25.09.2009, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)