Virtualworld & Houses.
#1

Hello, I have this command (from LARP mod):

pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
            {
              if(IsPlayerConnected(playerid))
                {
                    for(new i = 0; i < sizeof(HouseInfo); i++)
                    {
                            if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
                            {
                            SetPlayerInterior(playerid,0);
                                SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
                                PlayerInfo[playerid][pInt] = 0;
                                PlayerInfo[playerid][pLocal] = 255;
                                SetPlayerVirtualWorld(playerid,0);
                                TogglePlayerControllable(playerid, 0);

                              if(HouseEntered[playerid] == i)
                              {
                                        SetPlayerInterior(playerid,0);
                                        SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
                                        PlayerInfo[playerid][pInt] = 0;
                                        PlayerInfo[playerid][pLocal] = 255;
                                        SetCameraBehindPlayer(playerid);
                                        SetPlayerVirtualWorld(playerid,0);
                                        HouseEntered[playerid] = 255;
                                        if(HouseInfo[i][hHel] == 1)
                                        {
                                            new Float:tempheal;
                                            GetPlayerHealth(playerid,tempheal);
                                            if(tempheal < 100.0)
                                            {
                                                SetPlayerHealth(playerid,100.0);
                                            }
                                        }
                                    }
                                    return 1;
                                }
                            }
                        }
                }
Now, that problem is that when I type /exit sometimes it teleports me to another house.
I don't see any GetPlayerVirtualWorld function here and I don't know what the problem is.
Thanks in advance.

Reply
#2

Ask in LARP topic.
Reply
#3

Quote:
Originally Posted by _Xerxes_
Ask in LARP topic.
Stop with this spam already, I'M TRYING TO SOLVE THIS PROBLEM, THIS HAS NOTHING TO DO WITH THE LARP TOPIC! I CHANGED THE COMMAND.
Reply
#4

Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by _Xerxes_
Ask in LARP topic.
Stop with this spam already, I'M TRYING TO SOLVE THIS PROBLEM, THIS HAS NOTHING TO DO WITH THE LARP TOPIC! I CHANGED THE COMMAND.
1. That is not spam, learn what spam is.
2. Do not use CAPS, I even believe that is one of the rules on this forums.
3. Do not start yelling at me or anyone else on this forums, because most likely their trying to help you and when you start acting like that, they won't anymore.
4. You are the one that spammed.

So, good day sir.
Reply
#5

Quote:
Originally Posted by _Xerxes_
Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by _Xerxes_
Ask in LARP topic.
Stop with this spam already, I'M TRYING TO SOLVE THIS PROBLEM, THIS HAS NOTHING TO DO WITH THE LARP TOPIC! I CHANGED THE COMMAND.
1. That is not spam, learn what spam is.
2. Do not use CAPS, I even believe that is one of the rules on this forums.
3. Do not start yelling at me or anyone else on this forums, because most likely their trying to help you and when you start acting like that, they won't anymore.
4. You are the one that spammed.

So, good day sir.
1. I know what spam is, believe me.
2. I don't think that is one of the forum's rules.
3. I'm not yelling at you or anyone else, I asked for help and you didn't want to help.
4. I'm not the one that spammed.
5. I was angry, sorry ;p
Reply
#6

Double virtualworlds with the same interior.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)