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=315452)
OnPlayerPickUpPickup -
vent - 03.02.2012
****
Re: OnPlayerPickUpPickup -
MasterJoker - 03.02.2012
You doing it wrong. thats not the correct function of OnPlayerPickUpPickup
Re: OnPlayerPickUpPickup -
Psymetrix - 03.02.2012
You can't compare the pickup it to a float/coordinate.
Example:
pawn Код:
new g_Pickup;
public OnGameModeInit() {
g_Pickup = CreatePickup(...); // -2126.2483, -2303.6755, 30.6319
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == g_Pickup && KasutajaInfo[playerid][mTookoht] == 0)
{
ShowPlayerDialog(playerid,DIALOOG_TOOKOHT_MEH,DIALOG_STYLE_MSGBOX,"Tццleping","Tervist!\n Kas soovite hakata Angel Pine Mehaanikud AS tццtajaks?","Soovin","Ei soovi");
#if defined DEBUG
SendClientMessage(playerid, COLOR_RED, "[Debug] 2126.2483,-2303.6755,30.6319 | Angel Pine Mehaanikud AS");
#endif
}
return 1;
}
Re: OnPlayerPickUpPickup -
Mark™ - 03.02.2012
post the errors you got while compiling the script.
Re: OnPlayerPickUpPickup -
vent - 03.02.2012
Are there any other functions for that?
Re: OnPlayerPickUpPickup -
MP2 - 03.02.2012
The replies in this topic are quite confusing. Is this resolved or not?
Re: OnPlayerPickUpPickup -
vent - 21.05.2015
****