10.04.2011, 13:59
I have tested your code, and here it works perfectly.
Here's code that i used:
InPut:
OutPut:
Here's code that i used:
InPut:
pawn Код:
new pickup[6]; //i put more pickups...
public OnGameModeInit()
{
pickup[5] = CreatePickup(1239,1,1529.6,-1691.2,13.3, -1);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup[5]) GameTextForPlayer(playerid, "~r~Test sucefully", 5000, 1);
return 1;
}