![]() |
Help me please
Hello, I posted it here because I didnt see anywere else to post it, but anyways I need help with this script. The problem is there is a syntax error.
Script: function onPlayerchats() { if (player.chat == "/open") { 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"); } } |
Quote:
PHP Code:
|
Now it says
"missing ] after element list" |
try using something like this:
PHP Code:
|
Nope not working :O :( :'(... I wonder why?
|
if you are trying this in the offline editor, ignore the errors there and upload it. the offline editor just debugs that for the GS1 scripts, not GS2
|
Im not, I am putting it on as a "Weapon" on a server.
|
Quote:
http://forums.graal2001.com/forums/s...ad.php?t=84321 Using callimuc's script, you'll end up with something like... PHP Code:
|
So would it be like this?
Script: PHP Code:
|
Please wrap your code in [PHP] tags when you post here. That way it's formatted nicely (look at callimuc and Starfire2001's posts). I have to strain to read the code you're posting because there's no indentation.
|
Quote:
|
| All times are GMT +2. The time now is 01:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.