//============================================================================== // This command is used to teleport to a house. //============================================================================== CMD:gotohouse(playerid, params[]) { new h; if(!IsPlayerAdmin(playerid)) return 1; if(sscanf(params, "d", h)) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE); if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID); SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]); ShowInfoBox(playerid, I_TELEPORT_MSG, h); return 1; }
CMD:gotohouse(playerid, params[])
{
new h;
if(sscanf(params, "d", h)) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID);
SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]);
ShowInfoBox(playerid, I_TELEPORT_MSG, h);
return 1;
}
CMD:gotohouse(playerid, params[])
{
new h;
if(sscanf(params, "i", h))
{
ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
return 1;
}
else
{
if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID);
SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]);
ShowInfoBox(playerid, I_TELEPORT_MSG, h);
}
return 1;
}
D:\asaad\[NBTDM]0.3cR5\Eclipse\filterscripts\GarHouse.pwn(2356) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
seriously?
Код:
D:\asaad\[NBTDM]0.3cR5\Eclipse\filterscripts\GarHouse.pwn(2356) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
CMD:gotohouse(playerid, params[])
{
new h;
if(sscanf(params, "i", h))
{
ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
return 1;
}
else
{
if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID);
SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]);
ShowInfoBox(playerid, I_TELEPORT_MSG, h);
}
return 1;
}
pawn Код:
|