30.04.2012, 11:22
Im receiving an error from my code::
Error::
Код:
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 076: syntax error in the expression, or invalid function call


,Float:y,Float:z)