Weird Bug
#1

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
Reply
#2

Anybody ?
Reply
#3

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.
Reply
#4

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

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

http://wiki.sa-mp.com
Reply
#6

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)