2 Problems - 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: 2 Problems (
/showthread.php?tid=69126)
2 Problems -
CJ101 - 16.03.2009
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;
}
Re: 2 Problems -
56avenue - 16.03.2009
You have 'Bank' defined.
Quote:
Originally Posted by cj101
Код:
if (pickupid == BankEnter)
|
Shouldn't you change 'Bank' to 'BankEnter'?
Re: 2 Problems -
Kinetic - 16.03.2009
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...
Should be this...