send clien message
#1

ive inserted this:
new marker;

marker = AddStaticPickup(1318, 1, -1674.1563,2601.3787,81.3639, 0);//Begin Marker

if(pickupid == marker)SendClientMessage(playerid,COLOR_YELLOW,"Do ne");


If i enter in it it does not show "Done" text.

Reply
#2

Did you place:
pawn Код:
if(pickupid == marker)SendClientMessage(playerid,COLOR_YELLOW,"Done");
under OnPlayerPickupPickup?
Reply
#3

yes
Reply
#4

pawn Код:
if(pickupid == marker) return SendClientMessage(playerid,COLOR_YELLOW,"Done");
Try that.
Reply
#5

pawn Код:
if(pickupid == marker) return SendClientMessage(playerid,COLOR_YELLOW,"Done");
try this one.

//oh, Burridge was earlier.
Reply
#6

same, nothing happens
Reply
#7

Show the whole OnPlayerPickupPickup code...
Reply
#8

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == marker) return SendClientMessage(playerid,COLOR_YELLOW,"Done");
return 0;
}

ive tried with return 1 but same
Reply
#9

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == marker) {
    SendClientMessage(playerid,COLOR_YELLOW,"Done");
  }
  return 1;
}
Also change
pawn Код:
AddStaticPickup(1318, 1, -1674.1563,2601.3787,81.3639, 0);//Begin Marker
to
pawn Код:
CreatePickup(1318, 23, -1674.1563,2601.3787,81.3639, 0);//Begin Marker
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup Might be helpful for future references.
Reply
#10

fuck, it doesnt wo rks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)