OnPlayerPickUpPickup
#1

The OnPlayerPickUpPickup doesn't get called even if i walk on the pickup?

Код:
DealershipPickups[0] = CreateDynamicPickup(1239, 1, 2131.7966,-1149.4606,24.2644);
DealershipPickups[1] = CreateDynamicPickup(1239, 1, 542.2528,-1291.5217,17.2422);
DealershipPickups[2] = CreateDynamicPickup(1239, 1, 1663.7601,-1862.7172,13.5274);

public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == DealershipPickups[0] || pickupid == DealershipPickups[1] || pickupid == DealershipPickups[2])
	{
 		SendClientMessage(playerid, COLOR_GREEN, "INFO: You can access the dealership by typing '/dealership'.");
	}
	return 1;
}
Reply
#2

Hem, i have been in search and i got this:

Try to change OnPlayerPickUpPickup to OnPlayerPickUpDynamicPickup <= because you using CreateDynamicPickup (that what i got in this forum)
Reply
#3

CreateDynamicPickup isn't a native function. You need to use whatever callback was made for that function. Probably what curdy said.
Reply
#4

Yup, fixed it by myself, but thanks for the help anyway!
The problem was exactly what you two said.
Repped.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)