03.02.2012, 10:49
You can't compare the pickup it to a float/coordinate.
Example:
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;
}