Hi i was making some triggers like teleport from region to point and implented things like revive from this forum and now suddenly this Syntax error appears
The editor says i have a problem in the Global Variables
//--------------------------------------------------------------------------------------------------// Global Variables//--------------------------------------------------------------------------------------------------string[9]gv_;voidInitGlobals(){intinit_i;init_i=0;while(init_i<=8){gv_[init_i]=null;init_i=init_i+1;}}
the editor marked this here
string[9] gv_;
I something wrong with this one?
If you need more information just tell it but i need really some help because atm i can't save or it looks like i can't, i dont know
but i dont want to make the map new :(
that line is initializing the string variable. Its missing a name after _ . If the GUI trigger editor mess up your code. Try to delete that part and did that again
After some changes in the triggers i checked the variables i made and saw that one had no name so i made one for it and not everything is fine. I dont know exactly if this was the problem because made some other changes before but i hope it was :)
-------------------- Global Variables
--------------------
unitgroup gv_;
void InitGlobals () {
gv_ = UnitGroupEmpty();
}
Feel free to look up the map its unlocked and public for now. I cant make any progress on it until this is solved... add me my number is 558. Will check back tomorrow.
This syntax error disappeared after I simply named the trigger themselves, in the trigger list window/box usually located on the left side in the triggers editor window.
Probably is not the correct solution but still stopped the error.
Hi i was making some triggers like teleport from region to point and implented things like revive from this forum and now suddenly this Syntax error appears
The editor says i have a problem in the Global Variables
the editor marked this here
string[9] gv_;
I something wrong with this one?
If you need more information just tell it but i need really some help because atm i can't save or it looks like i can't, i dont know but i dont want to make the map new :(
that line is initializing the string variable. Its missing a name after _ . If the GUI trigger editor mess up your code. Try to delete that part and did that again
After some changes in the triggers i checked the variables i made and saw that one had no name so i made one for it and not everything is fine. I dont know exactly if this was the problem because made some other changes before but i hope it was :)
thx for the answer
Syntax error line 21 ================================================================================================== Generated Map Script Name: Axis Of Chaos Author: DarcZaFire ================================================================================================== include "TriggerLibs/NativeLib"
--------------------Library Initialization-------------------- void InitLibs () { libNtve_InitLib(); }--------------------Global Variables-------------------- unitgroup gv_;void InitGlobals () { gv_ = UnitGroupEmpty(); }
Feel free to look up the map its unlocked and public for now. I cant make any progress on it until this is solved... add me my number is 558. Will check back tomorrow.
"You either are doing it, or you are not": Me
Team Genesis: Founder/Leader
Skype: Grasso2012 or Add me in-game 558
Free Model Developing Program: http://www.autodesk.com/education/free-software/maya
This syntax error disappeared after I simply named the trigger themselves, in the trigger list window/box usually located on the left side in the triggers editor window. Probably is not the correct solution but still stopped the error.
"You either are doing it, or you are not": Me
Team Genesis: Founder/Leader
Skype: Grasso2012 or Add me in-game 558
Free Model Developing Program: http://www.autodesk.com/education/free-software/maya