04.02.2014, 08:25
Hey, I have this command, but whenever I use it, it shows "SERVER: Unknown command" but it does what it's supposed to do, why?
How can i remove "SERVER: Unknown command", even though it's returning 1 and I'm not using OnPlayerCommandText?? Thanks.
pawn Код:
CMD:exit(playerid)
{
for(new i=0; i<MAX_HOUSES; i++)
{
new hid=i;
new path[200];
format(path, sizeof(path), "/Houses/%d.ini",hid);
if(dini_Exists(path))
{
if(IsPlayerInRangeOfPoint(playerid,5,hInfo[InHouse[playerid]][EnterX],hInfo[InHouse[playerid]][EnterY],hInfo[InHouse[playerid]][EnterZ]))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,hInfo[InHouse[playerid]][ExitX],hInfo[InHouse[playerid]][ExitY],hInfo[InHouse[playerid]][ExitZ]);
InHouse[playerid]=-1;
}
}
}
return 1;
}