[Help] Sublime Text3 -
CDGlock - 31.03.2017
Hi guys.
I have a problem with the Sublime Text3, what happens is that when compiling I get the following warning
Thank you very much
Re: [Help] Sublime Text3 -
LazzyBoy - 31.03.2017
Tried to switch from (i ) to (a/or anytthing else ) ??
i dont really use this Sublimetext or whatever is it but the error shows that (i) is already used in that script.
Re: [Help] Sublime Text3 -
Vince - 01.04.2017
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.
Re: [Help] Sublime Text3 -
iiNzTicTx - 23.05.2017
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?
Re: [Help] Sublime Text3 -
Affan - 23.05.2017
You probably declared a public variable named "i" and then declared it again somewhere else. Try re-naming the private variables to another rather than the same variable name.
As Vince noted, this is not related to Sublime. I, myself use Sublime 3 and have not faced this issue either.
Re: [Help] Sublime Text3 -
YouHack - 23.05.2017
Quote:
Originally Posted by iiNzTicTx
Using compiler flags -;+ and -(+ is essential, but when using these flags it is WHEN it returns these errors.
|
Yes, I agree with what he said, as the flags might cause this error... did you even compile it in pawno?