Jump to content




Help With Command Decoder Using String.gmatch() Iteration


  • You cannot reply to this topic
3 replies to this topic

#1 hasunwoo

  • Members
  • 16 posts

Posted 03 August 2013 - 04:39 AM

http://pastebin.com/74yv9VH1
it doesn't work and cause error "bios:337: [String "cmd" ]:13: unexpected symbol".
please help me

#2 Kilobyte

  • Members
  • 122 posts

Posted 03 August 2013 - 04:58 AM

Don't put local infront of table element assignations. commands is already local so no need to redeclare it as local.

=> remove the local on line 13

#3 HurricaneCoder

  • Members
  • 52 posts

Posted 03 August 2013 - 08:05 AM

when you type local it will basically define a new varible. So in some cases you don't have to put local.

#4 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 03 August 2013 - 08:37 PM

command[loop] isn't a variable, command is.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users