OnPlayerPickUpPickup
#3

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;
}
Reply


Messages In This Thread
OnPlayerPickUpPickup - by vent - 03.02.2012, 10:44
Re: OnPlayerPickUpPickup - by MasterJoker - 03.02.2012, 10:47
Re: OnPlayerPickUpPickup - by Psymetrix - 03.02.2012, 10:49
Re: OnPlayerPickUpPickup - by Mark™ - 03.02.2012, 10:49
Re: OnPlayerPickUpPickup - by vent - 03.02.2012, 10:54
Re: OnPlayerPickUpPickup - by MP2 - 03.02.2012, 11:38
Re: OnPlayerPickUpPickup - by vent - 21.05.2015, 15:43

Forum Jump:


Users browsing this thread: 2 Guest(s)