Hey Leute, ich hab hier einen Code, und wenn ich sie ausführen will, kommt eine Fehlermeldung: Unterminated String
Wie kürzt man einen solchen String?
Spoiler anzeigen
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=c:\users\mat\desktop\item editor - compact server starter.kxf
$Form1 = GUICreate("Item Editor - Compact Server Starter", 307, 224, 564, 173)
$empfaenger = GUICtrlCreateInput("Empfänger", 8, 8, 97, 21)
$item_name = GUICtrlCreateInput("Item Name", 112, 8, 73, 21)
$item_amount = GUICtrlCreateInput("64", 192, 8, 49, 21)
$give = GUICtrlCreateButton("Geben!", 248, 8, 51, 25, 0)
$List1 = GUICtrlCreateList("", 8, 40, 289, 175)
;-------------------- Dieser hier ----------------------
GUICtrlSetData(-1, "Air Portal|Air Portal Frame|Apple (Item)|Arrow (Item)|Bed (Item)|Bed Block|Bedrock|Birch Leaves|Birch Sapling|Birch Wood|Black Wool|Blaze Powder (Item)|Blaze Rod (Item)|Block of Diamond|Block of Gold|Block of Iron|Blue Wool|Boat (Item)|Bone (Item)|Bone Meal (Item)|Book (Item)|Bookshelf|Bow (Item)|Bowl (Item)|Bread (Item)|Brewing Stand|Brewing Stand (Item)|Brick (Item)|Brick Stairs|Bricks|Bricks Slab (Damage 4)|Brown Mushroom|Brown Mushroom Block|Brown Wool|Bucket (Item)|Button|C418 - 11 (Item)|C418 - 13 (Item)|C418 - Blocks (Item)|C418 - Cat (Item)|C418 - Chirp (Item)|C418 - Far (Item)|C418 - Mall (Item)|C418 - Mellohi (Item)|C418 - Stal (Item)|C418 - Strad (Item)|C418 - Ward (Item)|Cactus|Cactus Green (Item)|Cake|Cake (Item)|Cauldron|Cauldron (Item)|Chainmail Boots (Item)|Chainmail Chestplate (Item)|Chainmail Helmet (Item)|Chainmail Leggings (Item)|Charcoal (Item)|Chest|Clay|Clay (Item)|Clock (Item)|Coal (Item)|Coal Ore|Cobblestone|Cobweb|Coco Beans (Item)|Compass (Item)|Cooked Fish (Item)|Cookie (Item)|Crops|Cyan Dye (Item)|Cyan Wool|Damaged Stone Bricks (Damage 2)|Dandelion Yellow (Item)|Dark Leaves|Dark Wood|Dead Bush (31)|Dead Bush (32)|Detector Rail|Diamond (Item)|Diamond Axe (Item)|Diamond Boots (Item)|Diamond Chestplate (Item)|Diamond Helmet (Item)|Diamond Hoe (Item)|Diamond Leggings (Item)|Diamond Ore|Diamond Pickaxe (Item)|Diamond Shovel (Item)|Diamond Sword (Item)|Dirt|Dispenser|Double Sandstone Slab (Damage 1)|Double Stone Slab (Damage 0)|Double Stone Slab (Damage 3)|Double Wooden Slab (Damage 2)|Egg (Item)|Enchantment Table|Ender Pearl (Item)|Eye of Ender (Item)|Farmland|Feather (Item)|Fence|Fence Gate|Fermented Spider Eye (Item)|Fern|Fire|Fishing Rod (Item)|Flint (Item)|Flint and Steel (Item)|Flower|Furnace|Gelden Pickaxe (Item)|Ghast Tear (Item)|Glass|Glass Bottle (Item)|Glass Pane|Glowing Redstone Ore|Glowstone|Glowstone Dust (Item)|Gold Ingot (Item)|Gold Nugget (Item)|Gold Ore|Golden Apple (Item)|Golden Axe (Item)|Golden Boots (Item)|Golden Chestplate (Item)|Golden Helmet (Item)|Golden Hoe (Item)|Golden Leggings (Item)|Golden Shovel (Item)|Golden Sword (Item)|Grass|Gravel|Gray Dye (Item)|Gray Wool|Green Wool|Gunpowder (Item)|Ice|Ink Sack (Item)|Iron Axe (Item)|Iron Bars|Iron Boots (Item)|Iron Chestplate (Item)|Iron Door (Item)|Iron Door Block|Iron Helmet (Item)|Iron Hoe (Item)|Iron Ingot (Item)|Iron Leggings (Item)|Iron Ore|Iron Pickaxe (Item)|Iron Shovel (Item)|Iron Sword (Item)|Jack-o"&Chr(39)&"-Lantern|Jukebox|Ladder|Lapis Lazuli (Item)|Lapis Lazuli Block|Lapis Lazuli Ore|Lava|Lava Bucket (Item)|Leather (Item)|Leather Boots (Item)|Leather Cap (Item)|Leather Pants (Item)|Leather Tunic (Item)|Leaves|Lever|Light Blue Dye (Item)|Light Blue Wool|Light Gray Dye (Item)|Light Gray Wool|Lily Pad|Lime Dye (Item)|Lime Wool|Lit Furnace|Locked Chest|Magenta Dye (Item)|Magenta Wool|Magma Cream (Item)|Map (Item)|Melon|Melon (Item)|Melon Seeds (Item)|Melon Stem|Milk (Item)|Minecart (Item)|Minecart with Chest (Item)|Minecart with Furnace (Item)|Monster Spawner|Moss Stone|Mossy Stone Bricks (Damage 1)|Mushroom Stew (Item)|Mycelium|Nether Brick|Nether Brick Fence|Nether Brick Stairs|Nether Wart|Nether Wart (Item)|Netherrack|Note Block|Obsidian|Orange Dye (Item)|Orange Wool|Painting (Item)|Paper (Item)|Pink Dye (Item)|Pink Wool|Piston (33)|Piston_(head) (34)|Portal|Potion (Item)|Powered Rail|Pumpkin|Pumpkin Seeds (Item)|Pumpkin Stem|Purple Dye (Item)|Purple Wool|Rail|Raw Beef (Item)|Raw Chicken (Item)|Raw Fish (Item)|Raw Porkchop (Item)|Red Mushroom|Red Mushroom Block|Red Wool|Redstone (Item)|Redstone Dust|Redstone Ore|Redstone Repeater (Item)|Redstone Torch|Redstone Torch (Off)|Repeater Block|Repeater Block (Off)|Rose|Rose Red (Item)|Rotten Flesh (Item)|Saddle (Item)|Sand|Sandstone|Sandstone Slab (Damage 1)|Sapling|Seeds (Item)|Shears (Item)|Sign (Item)|Sign Block|Silverfish Block|Slimeball (Item)|Snow|Snow Layer|Snowball (Item)|Soul Sand|Spider Eye (Item)|Sponge|Spruce Sapling|Steak (Item)|Stick (Item)|Sticky Piston|Still Lava|Still Water|Stone|Stone Axe (Item)|Stone Brick Stairs|Stone Bricks (Damage 0)|Stone Bricks Slab (Damage 5)|Stone Hoe (Item)|Stone Pickaxe (Item)|Stone Pressure Plate|Stone Shovel (Item)|Stone Slab (Damage 3)|Stone Slab (Damage 0)|Stone Stairs|Stone Sword (Item)|String (Item)|Sugar (Item)|Sugar Cane|Sugar Canes (Item)|Tall Grass|TNT|Torch|Trapdoor|Vines|Wall Sign|Water|Water Bucket (Item)|Wheat (Item)|Wood|Wooden Axe (Item)|Wooden Door (Item)|Wooden Door Block|Wooden Hoe (Item)|Wooden Pickaxe (Item)|Wooden Planks|Wooden Pressure Plate|Wooden Shovel (Item)|Wooden Slab (Damage 2)|Wooden Stairs|Wooden Sword (Item)|Wool|Workbench|Yellow Wool")
;-------------------------------------------------------
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Wie man sieht, ist sie für Minecraft =D
Habs mit Koda gemacht.
Edit: ach ja, habs gegooglet, hab aber nix gefunden!