Quote:
Originally Posted by Micko123
Okay but explain me then how is this working??
PHP Code:
if(newkeys == KEY_SECONDARY_ATTACK)
{
new org, OrgID = OrgInfo[org][oID];
if(IsPlayerInRangeOfPoint(playerid, 2.0, OrgInfo[org][oExitX], OrgInfo[org][oExitY], OrgInfo[org][oExitZ]))
{
if(PlayerInfo[playerid][OrgJoined] != OrgID || PlayerInfo[playerid][OrgLeader] != OrgID)
{
ERROR(playerid, "You are not member of that org");
return 1;
}
SetPlayerInterior(playerid, OrgInfo[org][oInt]);
SetPlayerVirtualWorld(playerid, OrgInfo[org][oVW]);
SPP(playerid, OrgInfo[org][oIntX], OrgInfo[org][oIntY], OrgInfo[org][oIntZ]);
}
}
|
Because you're probably standing near the coordinates of the one with index = 0.
Try it with another Org (Make sure that this one still exists)