PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


luaapi:px_setman

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
luaapi:px_setman [28/10/2012 00:03] ppkluaapi:px_setman [16/06/2015 14:03] (current) ppk
Line 1: Line 1:
-====== Setting manager metatable functions ======+====== Setting manager table functions ======
  
 ^ Function ^ Description ^ ^ Function ^ Description ^
Line 7: Line 7:
 |SetMan.SetMOTD(sString) | Set MOTD. <html>|</html> is not allowed.| |SetMan.SetMOTD(sString) | Set MOTD. <html>|</html> is not allowed.|
 | | | | | |
-|SetMan.GetBool([[luaapi:setting_bools_ids|nBoolId]]) | Return true or nil for given identificator.| +|SetMan.GetBool([[luaapi:setting_bools_ids|iBoolId]]) | Return true or nil for given identificator.| 
-|SetMan.SetBool([[luaapi:setting_bools_ids|nBoolId]], bBoolean) | Set boolean value for given identificator.|+|SetMan.SetBool([[luaapi:setting_bools_ids|iBoolId]], bBoolean) | Set boolean value for given identificator.|
 | | | | | |
-|SetMan.GetNumber([[luaapi:setting_numbers_ids|nNumberId]]) | Return value for given identificator.| +|SetMan.GetNumber([[luaapi:setting_numbers_ids|iNumberId]]) | Return value for given identificator.| 
-|SetMan.SetNumber([[luaapi:setting_numbers_ids|nNumberId]], nNumber) | Set value for given identificator.|+|SetMan.SetNumber([[luaapi:setting_numbers_ids|iNumberId]], iNumber) | Set value for given identificator.|
 | | | | | |
-|SetMan.GetString([[luaapi:setting_strings_ids|nStringId]]) | Return string or nil for given identificator.| +|SetMan.GetString([[luaapi:setting_strings_ids|iStringId]]) | Return string or nil for given identificator.| 
-|SetMan.SetString([[luaapi:setting_strings_ids|nStringId]], sString) | Set string for given identificator.|+|SetMan.SetString([[luaapi:setting_strings_ids|iStringId]], sString) | Set string for given identificator.|
 | | | | | |
 |SetMan.GetMinShare() | Return min share in bytes.| |SetMan.GetMinShare() | Return min share in bytes.|
-|SetMan.SetMinShare(nShareInBytes) | Set min share in bytes.| +|SetMan.SetMinShare(iShareInBytes) | Set min share in bytes.| 
-|SetMan.SetMinShare(nMinSharenShareUnits) | nMinShare max is 9999. nShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB|+|SetMan.SetMinShare(iMinShareiShareUnits) | iMinShare max is 9999. iShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB|
 | | | | | |
 |SetMan.GetMaxShare() | Return max share in bytes.| |SetMan.GetMaxShare() | Return max share in bytes.|
-|SetMan.SetMaxShare(nShareInBytes) | Set max share in bytes.| +|SetMan.SetMaxShare(iShareInBytes) | Set max share in bytes.| 
-|SetMan.SetMaxShare(nMaxSharenShareUnits) | nMaxShare max is 9999. nShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB|+|SetMan.SetMaxShare(iMaxShareiShareUnits) | iMaxShare max is 9999. iShareUnits 0 = B, 1 = kB, 2 = MB, 3 = GB, 4 = TB|
 | | | | | |
-|SetMan.SetHubSlotRatio(nHubsnSlots) | Set hub/slot ratio.|+|SetMan.SetHubSlotRatio(iHubsiSlots) | Set hub/slot ratio.|
 | | | | | |
 |SetMan.GetOpChat() | Return table with sNick, sDescription, sEmail, bEnabled.| |SetMan.GetOpChat() | Return table with sNick, sDescription, sEmail, bEnabled.|
luaapi/px_setman.1351382624.txt.gz · Last modified: 28/10/2012 00:03 by ppk