OnPlayerPickUpDynamicPickup - don't work - why?
#1

Hi everybody.
I have problem...
I was created one dynamic pickup - streamer plugin.

On top:
Код:
new kupno[5];
On public game mode init:
Код:
kupno[0] = CreateDynamicPickup(1274, 1, -1657.8188, 1210.8721, 7.2500, 0, 0, -1, 15.0);
And on PickUp
Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
	if(pickupid == kupno[0])//salon
	{
		ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, ""kzo"Cars - sporting", "Write /buy for buy a car.", "Buy", "Cancel");
		SendClientMessage(playerid, -1, "yyy2");
	}
	return 1;
}
What's wrong?
Because when I pick up kupno[0] - nothing happens.



Sorry for my English
Reply
#2

Refresh...

Please help me :[
Reply
#3

What streamer you are using?
Reply
#4

This:
https://sampforum.blast.hk/showthread.php?tid=102865/

version v2.6.1
Reply
#5

Weird..
Its working for me..
pawn Код:
#include <a_samp>
#include <streamer>

main()
{
}

new kupno[5];
public OnPlayerConnect(playerid)
{
SpawnPlayer(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,-1650,1206,7.25);
return 1;
}
public OnGameModeInit()
{
kupno[0] = CreateDynamicPickup(1274, 1, -1657.8188, 1210.8721, 7.2500, 0, 0, -1, 15.0);
}
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    if(pickupid == kupno[0])//salon
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Cars - sporting", "Write /buy for buy a car.", "Buy", "Cancel");
        SendClientMessage(playerid, -1, "yyy2");
    }
    return 1;
}
Try this test gamemode and see if it works for you
Reply
#6

When you enter to kupno pickup - turns on dialog and text "yyy2"?

When i enter to pickup - nothing happens :/
Reply
#7

Yes it does, you tested with my script and nothing?
Reply
#8

Working!
My mistake because I was using an older streamer version...
Reply
#9

I was about to say you are using something outdated, haha
Good luck anyway!
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)