01.08.2011, 18:38
What the hell is wrong with brackets. When i type /enter ive get SERVER UNKNOWN COMMAND...
pawn Code:
CMD:enter(playerid, params[]) {
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "veik");
for(new i = 0; i < sizeof(Houses); i++)
{
if (PlayerToPoint(1.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]))
{
if(GetPlayerVirtualWorld(playerid) == Houses[i][EnterWorld])
{
if(PlayerInfo[playerid][pHouseKey] == i || Houses[i][Locked] == 0 || PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerInterior(playerid,Houses[i][ExitInterior]);
SetPlayerPos(playerid,Houses[i][ExitX],Houses[i][ExitY],Houses[i][ExitZ]);
SetPlayerVirtualWorld(playerid,i);
SetPlayerFacingAngle(playerid,Houses[i][ExitAngle]);
return 1;
}
}
}
}
}