Quote:
Originally Posted by Vince
This has nothing to do with Sumblime Text. You have declared a variable "i" in the global scope. Why? I don't know. It's your script.
|
No this is a problem compiling.
It seems to only occur with loops (i.e : for( new i; i < GetPlayerPoolSize(); i++ ) )
Using compiler flags -;+ and -(+ is essential, but when using these flags it is WHEN it returns these errors.
Does anyone have a solution yet or is it the file encoding on particular text editors?
Got it Visual Code will still work similar in Sublime Text as I know people who have the same problem there as well:
{
"version": "0.1.0",
"command": "${workspaceRoot}\\pawno\\pawncc.exe",
"isShellCommand": true,
"args": ["${workspaceRoot}\\gamemodes\\${fileBasename}" ,"-(+", "-;+"],
"showOutput": "always",
"echoCommand": true,
"suppressTaskName": true,
"tasks": [
{
"taskName": "PAWNCompile",
"isBuildCommand" : true,
"args": [""]
}
]
}
Take what you need. I also downloaded
Zeek's compiler and used that. Obviously
order of the -(+ and -;+ flags has impact on how it compiles, so THIS is perhaps what it was?