View unanswered posts | View active topics It is currently Fri Dec 27, 2024 11:02 pm



Reply to topic  [ 2 posts ] 
 Referring to an instance.... error 
Author Message

Joined: Fri Sep 04, 2009 8:36 pm
Posts: 2
Reply with quote
Post Referring to an instance.... error
So i am trying to learn how to code in LUA and i went on the CC wiki site for tutorials and followed some instructions and i just get an error message saying

"Referring to an instance ('Magazine Dummy Pistol') to copy from thats hasn't been defined! in Mod.rte/SMG.ini at line 51!"

So i opened up SMG.ini and went over to line 51
(the line that says CopyOf is line 51 just thought i'd include the previous one)

Code:
 Magazine = Magazine
      CopyOf = Magazine Dummy Pistol


what do i do?


Fri Sep 04, 2009 10:22 pm
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Reply with quote
Post Re: Referring to an instance.... error
Hey just to save you from some unkind flaming, this here is .ini coding, or the coding that is the base of cc. Lua is the scripting language of cc where all the fancy stuff comes from ;)

As for your problem I'd try something more like

Code:
AddAmmo = Magazine
*tab*CopyOf = Magazine Dummy Pistol


If you're having problems with this type of coding in the future, try and stick it in mod making instead of lua scripting ;)


Sat Sep 05, 2009 2:50 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.020s | 13 Queries | GZIP : Off ]