SA-MP Forums Archive
/exit problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /exit problem (/showthread.php?tid=250031)



/exit problem - CrazyBlob - 21.04.2011

ok so i have 3cluckin bells all in dif virtual worlds

1st is in 8
2nd is in 23
3rd is in 9

and when i type /exit in the first cluckin bell works fine


and then when i type /exit in the 2nd or the 3rd cluckin bell nothing happens?

the code is all the same ive checked it 1000times plz help

heres the exit code

Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,364.9961,-11.8380,1001.8516)) //cluckin bell @ ls
			{
			    if(GetPlayerVirtualWorld(playerid) == 8)
				{
				    SetPlayerInterior(playerid,0);
				    SetPlayerVirtualWorld(playerid,0);
				    SetPlayerPos(playerid,926.7941,-1352.8116,13.3766);
				}
			}
			else if(IsPlayerInRangeOfPoint(playerid,3.0,364.9819,-11.8408,1001.8516)) //cluckin bell @ ls
			{
			    if(GetPlayerVirtualWorld(playerid) == 23)
				{
				    SetPlayerInterior(playerid,0);
				    SetPlayerVirtualWorld(playerid,0);
				    SetPlayerPos(playerid,2397.7021,-1896.9214,13.3828);
				}
			}
			else if(IsPlayerInRangeOfPoint(playerid,3.0,364.9961,-11.8380,1001.8516)) //cluckin bell @ ls
			{
			    if(GetPlayerVirtualWorld(playerid) == 10)
				{
				    SetPlayerInterior(playerid,0);
				    SetPlayerVirtualWorld(playerid,0);
				    SetPlayerPos(playerid,2421.9631,-1508.9528,23.9922);
				}
			}
if you need to see the enter code just ask - thanks


Re: /exit problem - Vince - 21.04.2011

Use:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3.0,364.9961,-11.8380,1001.8516))
{
    switch(GetPlayerVirtualWorld(playerid))
    {
        case 8: {}
        case 10: {}
        case 23: {}
    }
}



Re: /exit problem - CrazyBlob - 21.04.2011

Quote:
Originally Posted by Vince
Посмотреть сообщение
Use:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3.0,364.9961,-11.8380,1001.8516))
{
    switch(GetPlayerVirtualWorld(playerid))
    {
        case 8: {}
        case 10: {}
        case 23: {}
    }
}
where would i put that?


Re: /exit problem - CrazyBlob - 21.04.2011

sorry lol im rly dumb where do i put that lawl thanks bro it worked<3