new Iterator:Reports<MAX_REPORTS>;
task servertimer_global[1000]() {
foreach(new x : Reports) {
if(Reports[x][vaLide] && (gettime()-Reports[x][Time]) > 499) {
Reports[x][vaLide] = 0;
Reports[x][Type] = 0;
Reports[x][rFrom] = INVALID_PLAYER_ID;
Reports[x][rTo] = INVALID_PLAYER_ID;
format(Reports[x][message], 256, "NULL");
Iter_Remove(Reports, x);
}
}
}
|
Code looks good. Do you use crashdetect?
No? https://github.com/Zeex/samp-plugin-...es/tag/v4.18.1 If yes, do you compile with -d3 flag? No? https://github.com/Zeex/samp-plugin-...ith-debug-info |
Header size: 14904 bytes Code size: 2547064 bytes Data size: 20795764 bytes Stack/heap size: 16384 bytes; estimated max. usage: 1234 cells Total requirements: 23374116 bytes
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${project_path:${folder}}\\gamemodes",
"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
"variants": [
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${project_path:${folder}}\\filterscripts",
"name": "Filterscript"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-l", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file preprocessed"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-a", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file pcode"
}
]
}
|
Hm, I don't remember if -d3 made that always visible. I use -v2 as well just to be certain. Are you using custom PAWN.sublime-build? Mine looks like this
Код:
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${project_path:${folder}}\\gamemodes",
"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
"variants": [
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${project_path:${folder}}\\filterscripts",
"name": "Filterscript"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-l", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file preprocessed"
},
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-a", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"name": "Current file pcode"
}
]
}
|
{
"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
"path": "D:/Gamemode/gamemode/pawno"
}
|
Sure, that's enough too, but I'd recommend always having -d3 flag set (unless you really see some weird stuff in production I guess). If you want the box with stats always showing, just add -v2 flag
|
) and it works perfectly. estimated max. usage: unknown, due to recursion