Are SA:MP's pickup id's mess'd up? or is it my fault?
#1

Hello, i run a Dutch RPG server, we have like 10-20 people online everyday.
But there is a problem with our pickup system, i have this in my script:

Код:
WangcarsExitPickup = CreatePickup(1239, 2, -1932.8862,291.5186,445.7198); //Wangcars Inside Exit
AmunationEnterPickup = CreatePickup(1239, 2, 1234.0, 1234.0, 1234.0); // Amunation Outside Enter
We have like 18 pickups like the code above this text.
And we also have this:

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == WangcarsExitPickup)
	{
	  GameTextForPlayer(playerid, "~w~Press ~r~/exit ~w~to leave", 5000, 4);
	}
	if(pickupid == AmunationEnterPickup)
	{
	  GameTextForPlayer(playerid, "~r~Amunation~n~~w~Press ~r~/enter ~w~to enter", 5000, 4);
	}
	return 1;
}
So whats the problem:

Somedays, there are totaly no problems, if i enter a pickup, i will get the right pickup-text as it sais on ''OnPlayerPickupPickup''.
Otherdays, All pickup id's are (fucked)mess'd-up, when i enter ''WangcarsExitPickup'' i will get the ''AmunationEnterPickup'' text (or something).

I only use ''CreatePickup'', if i search for ''AddStaticPickup'' nothing will come up, so there is no combination between these kind of pickup's.


Anybody help?

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)