18.11.2016, 17:39
I also added to give player interior in debug. Here is the result
And I also changed command
I put SetPlayerInterior(playerid, 1);
But it is still 0..
PHP код:
[19:33:23] Entering Organization: 1
[19:33:23] Entering interior: 1
[19:33:23] Player interior: 0
[19:33:23] ___________________
PHP код:
CMD:enter(playerid)
{
new org;
if(IsPlayerInRangeOfPoint(playerid, 2.0, OrgInfo[org][oExitX], OrgInfo[org][oExitY], OrgInfo[org][oExitZ]))
{
GetPlayerInterior(playerid);
SetPlayerInterior(playerid, 1);
GetPlayerVirtualWorld(playerid);
SetPlayerVirtualWorld(playerid, OrgInfo[org][oVW]);
SPP(playerid, OrgInfo[org][oIntX], OrgInfo[org][oIntY], OrgInfo[org][oIntZ]);
printf("Entering Organization: %i", OrgInfo[org][oID]);
printf("Entering interior: %i",OrgInfo[org][oInt]);
printf("Player interior: %d", GetPlayerInterior(playerid));
print("___________________");
}
return 1;
}
But it is still 0..