13.08.2012, 10:23
Hi all! If i type this command... i will buy the house but i will get the msg: unknown command... so.. (succes = 0 ) .. Can you help me?
pawn Код:
if( success == 0)Info( playerid, "~r~~h~Unknown Command!~n~~n~~w~These commands may help you~n~~g~~h~/help /cmds /teles /rules /credits",6000 );
pawn Код:
CMD:exithouse(playerid, params[])
{
new pos = IsPlayerInRangeOfHouseEx(playerid);
if(IsPlayerInRangeOfHouseEx(playerid))
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, HouseEnterX[playerid], HouseEnterY[playerid], HouseEnterZ[playerid]);
return CallLocalFunction("OnPlayerExitHouse", "dd", playerid, pos);
}
else SendError(playerid, "You have to be in someone House!");
return ( 1 );
}