[HELP] bussines enter - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] bussines enter (
/showthread.php?tid=503297)
[HELP] bussines enter -
Luca12 - 28.03.2014
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);
}
}
}
Re: [HELP] bussines enter -
Luca12 - 29.03.2014
anyone?thanks
Re: [HELP] bussines enter -
BroZeus - 29.03.2014
i dont think there is a need of loop in that
Why have you put the loop
Re: [HELP] bussines enter -
Luca12 - 29.03.2014
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
Re: [HELP] bussines enter -
park4bmx - 29.03.2014
the farm is the 0,0,0 coordinates of the map, so that means your variables are wrong.
Re: [HELP] bussines enter -
Luca12 - 29.03.2014
but how it then work all fine when I press space
Re: [HELP] bussines enter -
Luca12 - 02.04.2014
anyone?thanks