28.06.2013, 08:40
Hey, I've a small problem with OnPlayerPickupPickup.
Here's how it's all defined.
The compiler compiles it all without any warning or error messages, and still in-game this is what I get..
Thanks ahead..
Here's how it's all defined.
pawn Код:
new test; // Top of the script
CreatePickup(1240, 1, 1936.2499,-2336.8120,13.5469, 0); // OnPlayerConnect
Create3DTextLabel("Test", COLOR_PURPLE, 1936.2499,-2336.8120,14.000, 30.0, 0, 0); //OnPlayerConnect
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == test)
{
SetPlayerPos(playerid, 1528.9799,-889.8781,61.1224);
SendClientMessage(playerid, COLOR_PURPLE, "Test");
return 1;
}
return 1;
}
Thanks ahead..