PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


luaapi:px_profman

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_profman [28/10/2012 00:05] ppkluaapi:px_profman [16/06/2015 14:03] (current) ppk
Line 1: Line 1:
-====== Profile manager metatable functions ======+====== Profile manager table functions ======
  
 ^ Function ^ Description ^ ^ Function ^ Description ^
-|ProfMan.AddProfile(sProfileName)|Add profile to profilemanager, return nProfileNumber if success or nil when profile already exist.| +|ProfMan.AddProfile(sProfileName)|Add profile to profilemanager, return iProfileNumber if success or nil when profile already exist.| 
-|ProfMan.RemoveProfile(sProfileName)|Remove profile from profilemanager, return true if success or nil when profile not exist or is in use.|+|ProfMan.RemoveProfile(sProfileName/iProfileNumber)|Remove profile from profilemanager, return true if success or nil when profile not exist or is in use.|
 | | | | | |
-|ProfMan.MoveDown(nProfileNumber)|Move profile down. Return nil when failed, true if success.| +|ProfMan.MoveDown(iProfileNumber)|Move profile down. Return nil when failed, true if success.| 
-|ProfMan.MoveUp(nProfileNumber)|Move profile up. Return nil when failed, true if success.|+|ProfMan.MoveUp(iProfileNumber)|Move profile up. Return nil when failed, true if success.|
 | | | | | |
-|ProfMan.GetProfile(sProfileName/nProfileNumber)|Return profile as [[luaapi:profile_table|profile table]] or nil if not exist.|+|ProfMan.GetProfile(sProfileName/iProfileNumber)|Return profile as [[luaapi:profile_table|profile table]] or nil if not exist.|
 |ProfMan.GetProfiles()|Return table with profiles as [[luaapi:profile_table|profile table]]s.| |ProfMan.GetProfiles()|Return table with profiles as [[luaapi:profile_table|profile table]]s.|
 | | | | | |
-|ProfMan.GetProfilePermission(nProfileNumber, [[luaapi:profile_permissions_ids|nPermissionId]])|Return true if permission is true, or nil.| +|ProfMan.GetProfilePermission(iProfileNumber, [[luaapi:profile_permissions_ids|iPermissionId]])|Return true if permission is true, or nil.| 
-|ProfMan.GetProfilePermissions(nProfileNumber)|Return [[luaapi:profile_permissions_table|profile permissions table]].|+|ProfMan.GetProfilePermissions(iProfileNumber)|Return [[luaapi:profile_permissions_table|profile permissions table]].|
 | | | | | |
-|ProfMan.SetProfileName(nProfileNumber, sProfileName)|Change profile name, return true if success or nil if profile not exist.| +|ProfMan.SetProfileName(iProfileNumber, sProfileName)|Change profile name, return true if success or nil if profile not exist.| 
-|ProfMan.SetProfilePermission(nProfileNumber, [[luaapi:profile_permissions_ids|nPermissionId]], bBoolean)|Change profile permission, return true if success or nil if profile not exist.|+|ProfMan.SetProfilePermission(iProfileNumber, [[luaapi:profile_permissions_ids|iPermissionId]], bBoolean)|Change profile permission, return true if success or nil if profile not exist.|
 | | | | | |
 |ProfMan.Save()|Save profiles.| |ProfMan.Save()|Save profiles.|
luaapi/px_profman.txt · Last modified: 16/06/2015 14:03 by ppk