24.08.2013, 06:15
Quote:
where I should to put the files ?
and how/where turn it on ? I didn't understand |
- Compile your script in debug mode (search for this if you don't know how)
- Open your server.cfg
- Add profiler to the "plugins" line (or create it if it doesn't exist)
- Add a new line containing this: "profile_gamemode 1"
- Launch the server
- If you did everything right, the server will say "Attached profiler to your_gamemode.amx"
- Wait for some time (I can't say for how long, depends on your script and your intentions)
- Close the server
- Go to the "gamemodes" folder and find a file named "your_gamemode-profile.html"
- If it doesn't exist, look up server_log.txt, there could be some error (usually due to insufficient file permissions), go back to step #5
- Otherwise, open the file in a browser of your choice
- For convenience, you can sort by any of the table columns by clicking on it (achieved with jQuery TableSorter plugin, it won't work without an internet connection)