[HELP] bussines enter
#1

Hello I was made bussines and know I was make when I close to bussines then when I press button enter then I enter in bussines that's fine but I want in dialog so I was make also when I close to bussines then it show me dialog ok and know I prees enter and it spawn me somewhere on some farm , why is that happening? Here is ondialog response

pawn Код:
if(dialogid == 444)
    {
        if(response)
        {
            for(new i = 0; i < sizeof(BussinesInfo); i++)
            {
                SetPlayerInterior(playerid,BussinesInfo[i][bussinesInt]);
                SetPlayerVirtualWorld(playerid,BussinesInfo[i][bussinesVirtualWorld]);
                SetPlayerPos_H(playerid,BussinesInfo[i][bussinesExitX],BussinesInfo[i][bussinesExitY],BussinesInfo[i][bussinesExitZ]);
                SetCameraBehindPlayer(playerid);
            }
        }
    }
Reply
#2

anyone?thanks
Reply
#3

i dont think there is a need of loop in that
Why have you put the loop
Reply
#4

beacuse it's need herre all that work when I press button space and I was in bussines so the others players but the problem is when I in dialog click on enter it spawned me on farm somewhere
Reply
#5

the farm is the 0,0,0 coordinates of the map, so that means your variables are wrong.
Reply
#6

but how it then work all fine when I press space
Reply
#7

anyone?thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)