10.06.2008, 13:36
[FS]Script Debug
By =>Sandra<=
By =>Sandra<=
What is it:
This filterscript counts all Pawn-functions which are used in a (part) of a script and its counts also the number of brackets and defines.
The original idea is from 'Kaisersouse' requesting in =>THIS<= topic.
Originally he wanted it made in VisualBasics (or php) but because i don't know how Visual Basics or php works, i created it in Pawno :P
Anyway,
How to install and use:
- Download the filterscript (links are at the bottom of this post).
- Put the .pwn and .amx files in your 'filterscripts'-folder
- Place the file "ScriptDebug.txt" into your 'scriptfiles'folder
- Open your 'server.cfg'
- Add 'ScriptDebug' after 'filterscripts' and save the file.
- Now copy a (part of) a script you want to debug and paste it inside the 'ScriptDebug.txt'-file
- Start your server
- Type /debug in the console to start debugging.
If you want some more info about 1 single function used in the script, type in the console:
for example:Quote:
/searchfunction [function]
.Quote:
/searchfunction SendClientMessage
This will show:- How many times this function is used in the script
- On which lines you can find this function.
As example i debugged the default "Area51"- gamemode.
/debug command:

/searchfunction command:

If the number of opening-brackets and closing-brackets does not match, you'll get a warning:

Download:Note: If you download it from pastebin, don't forget to create a new file into your scriptfiles-folder named "ScriptDebug.txt"
Please don't remove the credits!
=>Sandra<=

