My new fun mod that gives staff names and ranks; {Staff Roster} is now released on Steam at http://steamcommunity.com/sharedfiles/filedetails/?id=564750902
Hope you enjoy!
(feedback welcome)
{Staff Roster} new mod on Steam
Moderator: NBJeff
Re: {Staff Roster} new mod on Steam
i loved it :3 - not yet played with it
- aubergine18
- level2
- Posts: 231
- Joined: Sun Jul 05, 2015 3:24 pm
Re: {Staff Roster} new mod on Steam
When getting num items in a table, instead of using table.getn() you can use #tableName
so this
becomes this:
It's much faster than using the table.getn() function (and table.getn() is also deprecated in later versions of Lua)
so this
Code: Select all
maleNamecount = table.getn(maleNames)
becomes this:
Code: Select all
maleNamecount = #maleNames
It's much faster than using the table.getn() function (and table.getn() is also deprecated in later versions of Lua)
Re: {Staff Roster} new mod on Steam
Cool I like clear shorthand, especially if it's more efficient!
#thanks!
#thanks!
Who is online
Users browsing this forum: No registered users and 7 guests