![]() |
Strange Random() ?
I was testing a npc on N-Pulse when I noticed I dug up 2 items at once.. how could this be? I only generate the number once.. and they both have seperate ranges..
PHP Code:
And yes I will be using case/switch. But any reason this would be acting this way? |
How do you know your script just isn't getting executed twice?
You'd be able to tell if you used echo instead of player.chat for debugging. |
Quote:
After review, you are correct. Thanks for the help, it was actually executing 4 times. It's been a rough week. |
| All times are GMT +2. The time now is 10:22 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.