Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [Unity] Need help with arrays...driving me buggy!

Author
Message
Airslide
19
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 24th Feb 2007 23:56
Well, I've spent a good hour just trying to get this to work. Here's my lua code:

Global.lua (Copied from example)


Weapons.LUA



DBP Code:



It keeps saying the array is invalid.

BTW, I'm using code surge, so I can do '//' for comments. Any help will be greatly apperciated.

Airslide
19
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 25th Feb 2007 01:47
Nevermind, fixed it, but for anyone else who has this problem:

I basicly used:

Ammotype=1,

It should be:

Ammotype = 1,

Otherwise the '=1' become part of it or something, so you need the space.

Login to post a reply

Server time is: 2024-06-16 09:21:41
Your offset time is: 2024-06-16 09:21:41