2 Problems
#1

You know how in games like WS where if you go into a pickup and "/enter" pops up? i made that, but it dont work ( the text will not show)

Код:
//top of script
new Bank;


public OnPlayerPickupPickup(playerid, pickupid)
{
	if (pickupid == BankEnter)
	{
	SendClientMessage(playerid,COLOR_GREEN, "[!] Type /Enter to enter.");
	}

	return 1;
}

Public OnGameModeINit
{
 BankEnter = CreatePickup(1239,20,1727.1119,-1635.1990,20.2165); //23


  return 1;
}
Reply
#2

You have 'Bank' defined.
Quote:
Originally Posted by cj101
Код:
	if (pickupid == BankEnter)
Shouldn't you change 'Bank' to 'BankEnter'?
Reply
#3

Quote:
Originally Posted by Avenue
You have 'Bank' defined.
Quote:
Originally Posted by cj101
Код:
	if (pickupid == BankEnter)
Shouldn't you change 'Bank' to 'BankEnter'?
Exactly right.
This...
Код:
new Bank;
Should be this...
Код:
new BankEnter;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)