SA-MP Forums Archive
symbol is never used: "S@@_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: symbol is never used: "S@@_OnPlayerPickUpPickup" (/showthread.php?tid=464008)



symbol is never used: "S@@_OnPlayerPickUpPickup" - sansk - 14.09.2013

Uhm i don't get the problem.. but when i pickup the icons i don't get the GameText.. any help?


Re: symbol is never used: "S@@_OnPlayerPickUpPickup" - DanishHaq - 14.09.2013

Show us the OnPlayerPickUpPickup.

If you've not got one, then that's the problem. The warning there is saying that OnPlayerPickUpPickup is never being used, so it doesn't exist.


Re: symbol is never used: "S@@_OnPlayerPickUpPickup" - sansk - 14.09.2013

Код:
OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == CityHall)
    {
		ShowGameTextForPlayer = GameTextForPlayer(playerid, "Press the key \"Enter\" to enter the CityHall", 5000, 2);
		CreatePickup(1239, 2, 2273.8291,82.0429,26.4844);
    }
    else if(pickupid == CityHallE)
    {
        ShowGameTextForPlayer = GameTextForPlayer(playerid, "Press the key \"Enter\" to exit the CityHall", 5000, 2);
        CreatePickup(1239, 2, 389.4001,173.7315,1008.3828);
    }
    return 1;
}



Re: symbol is never used: "S@@_OnPlayerPickUpPickup" - FaceTutorialz - 14.09.2013

I don't think your supposed to have OnPlayerPickupPickup, I think OnPlayerPickup would work. I never heard or used a symbol named OnPlayerPickupPickup.


Re: symbol is never used: "S@@_OnPlayerPickUpPickup" - sansk - 14.09.2013

You are supposed to have that.. iknow you do..


Re: symbol is never used: "S@@_OnPlayerPickUpPickup" - sansk - 14.09.2013

Thanks ****** i feel like an idiot! xD +REP