little help
#1

Im receiving an error from my code::

Код:
forward BotPos(BotPos, Float:X, Float:Y, Float:Z);
public BotPos(BotPos, Float:X, Float:Y, Float:Z)
{
	for(new b=0; b<MAX_PLAYERS; b++)
	{
		if(IsPlayerNPC(b))
		{
			BotPos = GetPlayerPos(b, X, Y, Z);
   			return 1;
		}
	}
	return 1;
}

CMD:findbot(playerid, params[])
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if(IsPlayerAdmin(i))
  		{
		    SetPlayerPos(i, BotPos);//Error here
  		    SendClientMessage(i, -1, "You arrived successfully");
  		    return 1;
		}
		else return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
	}
	return 1;
}
Error::

Код:
error 076: syntax error in the expression, or invalid function call
Reply


Messages In This Thread
little help - by Youice - 30.04.2012, 11:22
Re: little help - by Youice - 30.04.2012, 11:48
Re: little help - by Jack_Leslie - 30.04.2012, 11:49
Re: little help - by Youice - 30.04.2012, 11:54
Re: little help - by Mean - 30.04.2012, 11:58
Re: little help - by Jack_Leslie - 30.04.2012, 12:00
Re: little help - by Youice - 30.04.2012, 12:05
Re: little help - by Jack_Leslie - 30.04.2012, 12:08
Re: little help - by Mean - 30.04.2012, 12:09
Re: little help - by Jack_Leslie - 30.04.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)