![]() |
[health script help] <read
ok when i press s to punch it turns my char invis but only if they have this script
and the punch script works fine allso but this only happens if they have this script so whats the prob with the script PHP Code:
|
Any chance that punch script has a for loop? Correct me if I'm wrong, but having the normal variables of i (as opposed to this.i), will change the player's value for i. If the punch script uses a variable by the same name, you'll run into problems.
Change all instances of "i" to "this.i" and see if that works. You have to remember that the player stores all the variables, not the individual script, unless they're temporary (temp.) or specific to a set of brackets (this.) (that is how this. works, right?). I haven't scripted in over a year, but I think that may be the problem. |
No Cali, that isn't the problem.
Try commenting out the entire script then narrowing down what is commented out till you discover what part of the script is causing the problem. |
Quote:
|
Quote:
PHP Code:
Like Zero said, try to debug it. |
Quote:
|
Quote:
I don't see why someone would use i to store something like that though. |
Quote:
|
All times are GMT +2. The time now is 06:03 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.