SendPrivMsg: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{v1_8_beta}} {{Welcome|desc=This function sends a private message to another player.| params=<source>(playerid, message)</source> <poem> ::playerid : The ID of the target player to whom private message is to be send. ::message : The message to send. </poem>| example=<source> function OnPlayerStreamIn(playerid) { SendPrivMsg(playerid, "Come near me"); } </source>| retvals=true on success, false on failure(invalid playerid)| relfuncs=*SendChat}}") |
No edit summary |
||
Line 13: | Line 13: | ||
</source>| | </source>| | ||
retvals=true on success, false on failure(invalid playerid)| | retvals=true on success, false on failure(invalid playerid)| | ||
relfuncs=*[[SendChat]]}} | relfuncs=*[[SendChat]] | ||
*[[SendCommand]]}} |
Latest revision as of 17:17, 29 October 2024
This function was added in v1.8 beta and will not work on previous versions.
Description:
This function sends a private message to another player.
Parameters:
(playerid, message)
playerid : The ID of the target player to whom private message is to be send.
message : The message to send.
Return Values:
true on success, false on failure(invalid playerid)
Example
function OnPlayerStreamIn(playerid) { SendPrivMsg(playerid, "Come near me"); }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.