![]() |
Hmm?
So.. I'm no labaled "coder" of any sort, but I have a pretty well based knowledge of Gscript. So I'm not really sure if this is used in other coding languages or anything, but this is just for the sake of knowing. What do all the "boolean", "foo", and "bar" names mean that show up in most command paramters? Are they an abbreviation for something? Do they mean something? I'm not sure of this and the question has been pondering my mind for quite some time.. >_<
|
Boolean is short for 'true or false' conditions. Foo and Bar are just fillers to use as examples. Such as, this.foo = true; would just be to show how to set a variable, and foo in reality is nothing at all, foo could be anything you want it to be.
|
Quote:
Edit: Since I made a thread, I'm actually having a problem with a code I'm working on. For some odd reason, when I made this script at first and was testing some minor things, it worked fine. Than I started to add more details into the script to finish it up. Now all of a sudden the onWeaponFired() function wont call anything, I've even tried deleting all of the code and simply adding a clientsided onWeaponFired() with it setting the player.chat variable, and oddly it STILL wont work.. anyone know why this could be?? Yes I am sure that I have the weapon, as I've set player.chat in the onCreated() event. Someone help please.. ? o.O Here is the code: PHP Code:
|
Is there a space after //#CLIENTSIDE?
If you've removed nearly everything from the clientside, and it still isn't working, then the best thing to do would be to check for silly things like this. |
Is the NPC named Bomb? If that's the case, there is a bug where WNPC's named after default weapons will load the default scripts(and in this case if you have no bombs, will do nothing). Otherwise I can't find anything wrong with it, unless it's spitting out syntax errors.
PHP Code:
|
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Has someone accidently disabled your weapons? Just a shot in the dark.
|
By the way, there's no reason to do stuff like:
PHP Code:
PHP Code:
|
Quote:
|
Quote:
Btw, didn't know that Chris.. Honestly I thought my way was more secure since it had to find the player, but obviously I was wrong.. XD But thanks for the advice. :) |
Quote:
Try deleting the weapon and re-adding it under a different name or clearing the files in your graal folder's weblevels. |
| All times are GMT +2. The time now is 07:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.