![]() |
TNT script not working
Ok so the tnt will only work if you equip it then unequip it and say /tnt
PHP Code:
|
When it doesn't work, does it not execute at all or does it do something like say that the player still has to wait when it shouldn't? From the looks of your script the this.temp[5] in the if statement should be this.temp[6].
|
Quote:
PHP Code:
PHP Code:
|
It still isn't working. It will work if you equip it then unequip it and reconnect. And even after you log off. I don't know it is confusing to me and this is the only script i need to fix for Atrius to get hosted and no one else on the staff team is helping
|
Quote:
|
Ya, the best way to fix scripts is to debug the crap out of them. Start by assuming what's the problem, where the script isn't working. Do this by echo'ing variables and other important information. Repeat this process until you figure out what isn't working correctly, what isn't doing what you want it to do, and change it.
Also: triggeraction(0,0,"serverside",Tools/TNT,"use"); should be: triggeraction(0,0,"serverside","Tools/TNT","use"); though it's preferred you do: triggerserver("gui","Tools/TNT","use"); Also, it might be "/tnt", for some reason I have problems getting stuff like player.chat=="/..." to work, but if I remove the /, it works perfectly fine(I doubt this is the problem, but could be... that's what debugging is for). And going along with what everyone else has said, parameters, like array, start their index at 0. so basically subtract 1 from every params[x]. |
| All times are GMT +2. The time now is 05:54 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.