send clien message - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: send clien message (
/showthread.php?tid=130482)
send clien message -
shoru93 - 27.02.2010
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.
Re: send clien message -
Burridge - 27.02.2010
Did you place:
pawn Код:
if(pickupid == marker)SendClientMessage(playerid,COLOR_YELLOW,"Done");
under OnPlayerPickupPickup?
Re: send clien message -
shoru93 - 27.02.2010
yes
Re: send clien message -
Burridge - 27.02.2010
pawn Код:
if(pickupid == marker) return SendClientMessage(playerid,COLOR_YELLOW,"Done");
Try that.
Re: send clien message -
thiaZ_ - 27.02.2010
pawn Код:
if(pickupid == marker) return SendClientMessage(playerid,COLOR_YELLOW,"Done");
try this one.
//oh, Burridge was earlier.
Re: send clien message -
shoru93 - 27.02.2010
same, nothing happens
Re: send clien message -
Burridge - 27.02.2010
Show the whole OnPlayerPickupPickup code...
Re: send clien message -
shoru93 - 27.02.2010
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == marker) return SendClientMessage(playerid,COLOR_YELLOW,"Done");
return 0;
}
ive tried with return 1 but same
Re: send clien message -
Burridge - 27.02.2010
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.
Re: send clien message -
shoru93 - 27.02.2010
fuck, it doesnt wo rks