pickup problem
#1

I have mysql pickups, and when i create i creat dynamics, and i want if is fbi on pickup text to show me dialog, but nothing happened

Код HTML:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
  	for(new i;i<Total_SVP_Created;i++)
	{
		if(strfind(PickUpInfo[i][pcText],"F.B.I."))
		{
		    if(pickupid==i)
			ShowPlayerDialog(playerid, DIALOG_FBI, DIALOG_STYLE_LIST, "info", "This pickup is from fbi", "Ok", "Exit");
			return 1;
		}
	}
	return 1;
}
What is wrong?
In my pickup write "F.B.I. Pickup No.1"
Reply
#2

umm there are no text in pickups, maybe you are creating 3dtextlabel only but not pickup. And make sure pickup is of type 3.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)