SA-MP Forums Archive
[Help] Sublime Text3 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Sublime Text3 (/showthread.php?tid=631566)



[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
View Post
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
View Post
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?