Official SMOD2D Developer Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Official SMOD2D Developer Forum
We've moved FORUMS. Also, do remember that the MOD is dead but we're working on the REAL GAME NOW.
Search Query
Display results as :
Posts
Topics
Advanced Search
Official SMOD2D Developer Forum
::
SMOD2D Project Related
::
SMOD2D Reports
smod.lua - unneeded coding.
3 posters
Author
Message
wenn
Posts
:
6
Join date
:
2010-05-18
Subject: smod.lua - unneeded coding.
Thu May 27, 2010 1:24 pm
if smod==nil then smod={} end
function initArray(m)
local array = {}
for i = 1, m
do array[i]=0
end
return array
end
@adware: These are the first codes in your lua, they seem useless - Do you need them or can I remove them.
Like
Dislike
Adware
Posts
:
11
Join date
:
2010-05-21
Subject: Re: smod.lua - unneeded coding.
Thu May 27, 2010 1:30 pm
Oh sure, as long as the script works. You're better than me at lua.
I don't understand though, does cs2d have initArray already or there's another script running besides s-mod.lua?
Like
Dislike
Spyware
Project Administration Leader(your PAL)
Posts
:
256
Join date
:
2010-05-17
Age
:
113
Location
:
Marie Byrd Land, Antarctica
Subject: Re: smod.lua - unneeded coding.
Thu May 27, 2010 1:39 pm
~MOVED TO SMOD REPORTS~
Like
Dislike
wenn
Posts
:
6
Join date
:
2010-05-18
Subject: Re: smod.lua - unneeded coding.
Fri May 28, 2010 4:38 am
lua not cs2d, already have initArray() "{}"
smod.array = {} initializes nil values
http://www.lua.org/pil/11.1.html
Like
Dislike
Sponsored content
Subject: Re: smod.lua - unneeded coding.
smod.lua - unneeded coding.
Page
1
of
1
Similar topics
Similar topics
»
SMOD is *DEAD*?
»
FIRST EVER SMOD OFFICIAL ART
»
The SMOD:2D Team
»
LaG SMOD 2D problem
»
DC's Opinion on SMOD:2D
Permissions in this forum:
You
cannot
reply to topics in this forum
Official SMOD2D Developer Forum
::
SMOD2D Project Related
::
SMOD2D Reports
Official SMOD2D Developer Forum
::
SMOD2D Project Related
::
SMOD2D Reports
Jump to:
Select a forum
|
|--Forum Rules and About
| |--Rules and Regulations
| |--Information
|
|--SMOD2D Project Related
| |--SMOD2D Versions
| |--SMOD2D General
| |--SMOD2D Suggestions
| |--SMOD2D Reports
| |--SMOD2D Moments
|
|--Community Talk
| |--General Discussions
| |--CS2D Discussions
| |--Introduce Yourself
| |--Showoff
| |--Media Zone
| |--Help Zone
|
|--Entertainment Sector
|--Forum Games
|--Off-Topic
|--SPAMZ
|--Trash Forum