![]() |
Strange problem. Variable isn't adding?
Alright so I have this script:
PHP Code:
however, for some strange reason, temp.paralyzecounter will always return 0.05 And yes, I have also tried removing both parts that reset the timer, and I'm 100% certain that temp.paralyzecounter is handled anywhere else in the weapon. Any ideas on why it won't add? |
Quote:
|
temp variables are cleared when the function is complete and only exist in the scope of that function, so unless your code is in some sort of while or for loop and iterates at least 20 times your code will never get past the (temp.paralyzecounter >= 1).
temp example: PHP Code:
Quote:
|
edit: Alright, looks like that worked. Thanks fp4 :D
|
| All times are GMT +2. The time now is 02:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.