04.02.2015, 23:34
I made a command to create business, Then when i create the business it info saved as
Then under OnKeyStateChange
I tried to set the player interior as saved in the business info i got the same result
REP+++
PHP код:
BusinessInfo[id][bExitX] = 6.091179; //WhatEver
BusinessInfo[id][bExitY] = 6.091179; //WhatEver
BusinessInfo[id][bExitZ] = 6.091179; //WhatEver
BusinessInfo[id][bInsideInt] = 2; //WhatEver
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK))
{
for(new x = 0; x < sizeof(BusinessInfo);x++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, BusinessInfo[x][bEntranceX],BusinessInfo[x][bEntranceY],BusinessInfo[x][bEntranceZ]))
{
SetPlayerPos(playerid, BusinessInfo[x][bExitX],BusinessInfo[x][bExitY],BusinessInfo[x][bExitZ]);
SetPlayerVirtualWorld(playerid, BusinessInfo[x][bInsideWorld]);
}
}
}
return 1;
}
REP+++