OnKeyStateChange [REP++++]
#1

I made a command to create business, Then when i create the business it info saved as
PHP код:
BusinessInfo[id][bExitX] = 6.091179//WhatEver
BusinessInfo[id][bExitY] = 6.091179//WhatEver
BusinessInfo[id][bExitZ] = 6.091179//WhatEver
BusinessInfo[id][bInsideInt] = 2//WhatEver 
Then under OnKeyStateChange
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if((
newkeys KEY_SECONDARY_ATTACK) && !(oldkeys KEY_SECONDARY_ATTACK))
    {
        for(new 
0sizeof(BusinessInfo);x++)
        {
            if(
IsPlayerInRangeOfPoint(playerid1.0BusinessInfo[x][bEntranceX],BusinessInfo[x][bEntranceY],BusinessInfo[x][bEntranceZ]))
            {
                
SetPlayerPos(playeridBusinessInfo[x][bExitX],BusinessInfo[x][bExitY],BusinessInfo[x][bExitZ]);
                
SetPlayerVirtualWorld(playeridBusinessInfo[x][bInsideWorld]);
            }
        }
    }
        
    return 
1;

I tried to set the player interior as saved in the business info i got the same result

REP+++
Reply
#2

Add my skype - izeatfishz
Reply
#3

I think you need to use SetPlayerInterior instead of SetPlayerVirtualWorld in line 10. I am presuming bInsideInt is the interior ID of the business, which is completely different from Virtual worlds.
Reply
#4

As i said i added
SetPlayerInterior(playerid,BusinessInfo[i][bInsideInt]);
And i got the same problem
Reply
#5

lol i worked REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)