SA-MP Forums Archive
OnPlayerPickupPickup - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerPickupPickup (/showthread.php?tid=446995)



OnPlayerPickupPickup - CLT - 28.06.2013

Hey, I've a small problem with OnPlayerPickupPickup.

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;
}
The compiler compiles it all without any warning or error messages, and still in-game this is what I get..



Thanks ahead..


Re: OnPlayerPickupPickup - AIped - 28.06.2013

you must have another filterscript running that uses onplayerpickup
If so, disable that one and see what happens


Re: OnPlayerPickupPickup - ScRipTeRi - 28.06.2013

i think you you need delete somthing from Filterscript, gl_property if you have this Delete and test again.


Re: OnPlayerPickupPickup - CLT - 28.06.2013

Quote:
Originally Posted by AIped
Посмотреть сообщение
you must have another filterscript running that uses onplayerpickup
If so, disable that one and see what happens
Quote:
Originally Posted by ScRipTeRi
Посмотреть сообщение
i think you you need delete somthing from Filterscript, gl_property if you have this Delete and test again.
Thanks guys, repped both

EDIT: repped too much in past 24h soz


Re: OnPlayerPickupPickup - ScRipTeRi - 28.06.2013

not problem