30.04.2012, 12:08
Quote:
|
I already made this before! but what happened is::
I receive this error:: Код:
error 017: undefined symbol "X" thats why I made this "public BotPos" |
pawn Код:
CMD:findbot(playerid, params[])
{
new Float:X,Float:Y,Float:Z;
if(IsPlayerAdmin(playerid))
{
for(new b=0; b<MAX_PLAYERS; b++)
{
if(IsPlayerNPC(b))
{
GetPlayerPos(b, X, Y, Z);
}
}
SetPlayerPos(i, X, Y, Z);
SendClientMessage(i, -1, "You arrived successfully");
return 1;
}
else return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
}


