• Odd error in script
    2 replies, posted
I get this error in-game when starting up. [quote]autorun/portal_strider.lua:1: '=' expected near 'Category'[/quote] This here is the code: [quote] Local Category = "Aperture Science" local NPC = { Name = "Aperture Strider", Class = "npc_strider", Model = "models/portal_strid/Strider.mdl", Category = Category } list.Set( "NPC", "Portal_Strider", NPC ) [/quote] I can't see anything wrong with the code just by comparing it to a script from an NPC addon that works. Anyone have any idea what's wrong? ^_^' Any help would be greatly appreciated.
You capitalized "Local" in "Local Category = "Aperture Science"".
[QUOTE=Entoros;17031748]You capitalized "Local" in "Local Category = "Aperture Science"".[/QUOTE] I'll be damned, that fixed it. ^_^' I was looking at the '=', and didn't even notice that. Thanks!!
Sorry, you need to Log In to post a reply to this thread.