SA-MP Forums Archive
Weird Bug - 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: Weird Bug (/showthread.php?tid=83081)



Weird Bug - FreeSoul - 22.06.2009

Ok,so I use a complex system of stores and things like that.Like,whenever a player enters a pickup it will TP him to a shop and set a certain virtual world.If the player has certain virtual worlds,there will be different exits.
If you didn't understand,this is my code.
Quote:

if (pickupid == exitp)
{
if (GetPlayerVirtualWorld(playerid) == 22)
{
format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Pershing Square");
GameTextForPlayer(playerid, string, 100, 1);
SetPlayerPos(playerid,1351.6871,-1753.7148,13.3516);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else if (GetPlayerVirtualWorld(playerid) == 23)
{
format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Atrium");
GameTextForPlayer(playerid, string, 100, 1);
SetPlayerPos(playerid,1670.9865,-1585.9718,13.5469);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else if (GetPlayerVirtualWorld(playerid) == 24)
{
format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Jefferson");
GameTextForPlayer(playerid, string, 100, 1);
SetPlayerPos(playerid,2142.3367,-1168.5657,23.9922);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else if (GetPlayerVirtualWorld(playerid) == 25)
{
format(string, sizeof(string), "~w~ Los Santos ~n~ ~w~ Santa Maria Beach");
GameTextForPlayer(playerid, string, 100, 1);
SetPlayerPos(playerid,520.6794,-1813.4641,6.5781);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}

The problem is:
If the player enters once the pickup calles "exitp",he can't enter it again untill he relogs,the pickups just won't show up anymore.

What is the problem?
Thanks in advance


Re: Weird Bug - FreeSoul - 22.06.2009

Anybody ?


Re: Weird Bug - Donny_k - 22.06.2009

There are different types, I think type 3 is the one you want (respawns) but I could be wrong. Take a look on the Wiki at CreatePickup dude.


Re: Weird Bug - FreeSoul - 22.06.2009

Still doesn't work,same problem,it dissapears,and I change the type from 23 to 1,doesnt dissapear


Re: Weird Bug - ashley_bridges - 22.06.2009

so he can't get back in maybe it would be better trying the wiki

http://wiki.sa-mp.com


Re: Weird Bug - FreeSoul - 22.06.2009

Quote:
Originally Posted by ashley_bridges
so he can't get back in maybe it would be better trying the wiki

http://wiki.sa-mp.com
huh?