StartRecordingAllPlayerData: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.8 (not released as of 19.Dec.2023) and will not work in previous versions. </poem> {{Welcome| desc=Starts recording all players.| params=<syntaxhighlight lang="lua">(playerid, recordtype=3, flags=60)</syntaxhighlight> <poem>::playerid : The ID of the player whose actions to be recorded ::recordtype : The type of the recording. ::flags : Spec...")
 
No edit summary
Line 3: Line 3:
</poem>
</poem>
{{Welcome|
{{Welcome|
desc=Starts recording all players.|
desc=Starts recording all players who are online and returns number of players who are put into recording freshly.|
params=<syntaxhighlight lang="lua">(playerid, recordtype=3, flags=60)</syntaxhighlight>
params=<syntaxhighlight lang="lua">(playerid, recordtype=3, flags=60)</syntaxhighlight>
<poem>::playerid : The ID of the player whose actions to be recorded
<poem>
::recordtype : The [[RecordingTypes|type]] of the recording.
::recordtype : The [[RecordingTypes|type]] of the recording.
::flags : Specify one or more value combined from [[Recording_Flags|flags]] by using 'bitwise OR'. 0 means nothing will be recorded. </poem>|
::flags : Specify one or more value combined from [[Recording_Flags|flags]] by using 'bitwise OR'. 0 means nothing will be recorded. </poem>|
retvals='''true''', on success and '''false''', on failure. Failure means the player is not connected.|
retvals=The total no:of recordings newly started. If some player was already under recording, that player will be ignored and the value returned will not count that player.|
relfuncs=*[[StopRecordingAllPlayerData]]
relfuncs=*[[StopRecordingAllPlayerData]]
*[[StartRecordingPlayerData]]
*[[StartRecordingPlayerData]]
}}
}}

Revision as of 10:00, 20 December 2023

This function was added in v1.8 (not released as of 19.Dec.2023) and will not work in previous versions.


Description:
Starts recording all players who are online and returns number of players who are put into recording freshly.


Parameters:

(playerid, recordtype=3, flags=60)

recordtype : The type of the recording.
flags : Specify one or more value combined from flags by using 'bitwise OR'. 0 means nothing will be recorded.


Return Values:
The total no:of recordings newly started. If some player was already under recording, that player will be ignored and the value returned will not count that player.



Related Functions

The following functions may be helpful as they relate to this function in one way or another.