Sign in to follow this  
Followers 0
myxomatosii

Whats wrong with my underscores?

7 posts in this topic

#1 ·  Posted (edited)

GUICreate("Hamster Pellet Counter")
GuiSetState(@sw_show)
$ctl=GuiCtrlCreateCombo("Town Hall",10,10)
GuiCtrlSetData(-1,"Academy|Warehouse|Tavern|Palace/Gov.Res.|Museum|Trading Port"_
_"Shipyard|Barracks|Town Wall|Embassy|Trading Post|Workshop|Hideout|Forester's House|"_
_"Glassblower|Alchemist's Tower|Winegrower|Stonemason|Carpenter|Optician|"_
_"Firework Test Area|Wine Press|Architect's Office","Town Hall")
While 1
WEnd

i searched google and this site and all results that come back are never for basic question instead they always are pointing at very hard scripts

i have a very basic question on how to continue line

Edited by myxomatosii

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

;;;;;;;;;;main control code;;;;;;;;;;
;city1 code
GUICreate("Hamster Pellet Counter")
GuiSetState(@sw_show)
$ctl=GuiCtrlCreateCombo("Town Hall",10,10)
GuiCtrlSetData(-1,"Academy|Warehouse|Tavern|Palace/Gov.Res.|Museum|Trading Port|" _
"Shipyard|Barracks|Town Wall|Embassy|Trading Post|Workshop|Hideout|Forester's House|" _
"Glassblower|Alchemist's Tower|Winegrower|Stonemason|Carpenter|Optician|" _
"Firework Test Area|Wine Press|Architect's Office","Town Hall")
While 1
WEnd

ok i changed it to this, now my error is coming up on the line after the first line lol, does format for this change after the first line?

C:\Documents and Settings\.. : ERROR: syntax error

"Shipyard|Barracks|Town Wall|Embassy|Trading Post|Workshop|Hideout|Forester's House|"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\.. - 1 error(s), 0 warning(s)

Edited by myxomatosii

Share this post


Link to post
Share on other sites

GUICreate("Hamster Pellet Counter")
GuiSetState(@sw_show)
$ctl=GuiCtrlCreateCombo("Town Hall",10,10)
GuiCtrlSetData(-1,"Academy|Warehouse|Tavern|Palace/Gov.Res.|Museum|Trading Port|" &_
"Shipyard|Barracks|Town Wall|Embassy|Trading Post|Workshop|Hideout|Forester's House|" &_
"Glassblower|Alchemist's Tower|Winegrower|Stonemason|Carpenter|Optician|" &_
"Firework Test Area|Wine Press|Architect's Office","Town Hall")
While 1
WEnd

i think i am not following you, i did that now and i still get the same error on the same line... =(

sorry my level is low

Share this post


Link to post
Share on other sites

GUICreate("Hamster Pellet Counter")
GuiSetState(@sw_show)
$ctl=GuiCtrlCreateCombo("Town Hall",10,10)
GuiCtrlSetData(-1,"Academy|Warehouse|Tavern|Palace/Gov.Res.|Museum|Trading Port|" &_
"Shipyard|Barracks|Town Wall|Embassy|Trading Post|Workshop|Hideout|Forester's House|" &_
"Glassblower|Alchemist's Tower|Winegrower|Stonemason|Carpenter|Optician|" &_
"Firework Test Area|Wine Press|Architect's Office","Town Hall")
While 1
WEnd

i think i am not following you, i did that now and i still get the same error on the same line... =(

sorry my level is low

You made the same error as you did initially... the space is missing again.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

GUICreate("Hamster Pellet Counter")
GuiSetState(@sw_show)
$ctl=GuiCtrlCreateCombo("Town Hall",10,10)
GuiCtrlSetData(-1,"Academy|Warehouse|Tavern|Palace/Gov.Res.|Museum|Trading Port|"& _
"Shipyard|Barracks|Town Wall|Embassy|Trading Post|Workshop|Hideout|Forester's House|"& _
"Glassblower|Alchemist's Tower|Winegrower|Stonemason|Carpenter|Optician|"& _
"Firework Test Area|Wine Press|Architect's Office","Town Hall")
While 1
WEnd

got it! thanks for being patient with me Jos~

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0