View Single Post
  #6  
Old 07-04-2009, 08:15 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
PHP Code:
function onPlayerchats()
{
  if (
player.chat == "/open account")
  {
    if (
player.weapons.index(findweapon("-Bank/Account")) > 0
    {
      
say2("You already have a bank account");
    }
    else
    {
      
say2("You have opened a bank account!");
      
player.addWeapon("-Bank/Account");
    }

You should use php tags for your code, and styling the code makes it easier to read.

And you were also missing an opening bracket in your else statement.
__________________

Reply With Quote