OnPlayerPickUpPickup
#1

****
Reply
#2

You doing it wrong. thats not the correct function of OnPlayerPickUpPickup
Reply
#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
#4

post the errors you got while compiling the script.
Reply
#5

Are there any other functions for that?
Reply
#6

The replies in this topic are quite confusing. Is this resolved or not?
Reply
#7

****
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)