SendPropArray(): Difference between revisions
Jump to navigation
Jump to search
Bug:
TomEdwards (talk | contribs) (bug: cannot be used with EHandle) |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<code>'''SendPropArray()'''</code> and <code>'''RecvPropArray()'''</code> are [[datatable]] macros that wrap around an existing [[SendProp()|send/receive prop]] and allow it to transmit as an array. They should be used with <code>[[SENDINFO_ARRAY()]]</code> in place of <code>[[SENDINFO()]]</code>. | <code>'''SendPropArray()'''</code> and <code>'''RecvPropArray()'''</code> are [[datatable]] macros that wrap around an existing [[SendProp()|send/receive prop]] and allow it to transmit as an array. They should be used with <code>[[SENDINFO_ARRAY()]]</code> in place of <code>[[SENDINFO()]]</code>. | ||
{{bug|<code>RecvPropArray()</code> cannot be used with <code>[[Ehandle|EHandle]]</code> props.}} | {{bug|<code>RecvPropArray()</code> cannot be used with <code>[[Ehandle|EHandle]]</code> props. Use [[SendPropArray3()]].}} | ||
''usage:'' | ''usage:'' | ||
Line 9: | Line 9: | ||
''client:'' | ''client:'' | ||
RecvPropArray( <span style="color:gray;">RecvPropInt( RECVINFO_ARRAY(m_iMyArray) )</span>, m_iMyClientArray ), | RecvPropArray( <span style="color:gray;">RecvPropInt( RECVINFO_ARRAY(m_iMyArray) )</span>, m_iMyClientArray ), | ||
==See also== | |||
*[[SendPropArray3()]] | |||
[[Category:Macros]] | [[Category:Macros]] | ||
[[Category:Networking]] | [[Category:Networking]] |
Revision as of 03:12, 26 March 2008
SendPropArray()
and RecvPropArray()
are datatable macros that wrap around an existing send/receive prop and allow it to transmit as an array. They should be used with SENDINFO_ARRAY()
in place of SENDINFO()
.

RecvPropArray()
cannot be used with EHandle
props. Use SendPropArray3(). [todo tested in ?]usage: Send/RecvPropArray( <prop template>, <source/destination array> ), server: SendPropArray( SendPropInt( SENDINFO_ARRAY(m_iMyArray) ), m_iMyServerArray ), client: RecvPropArray( RecvPropInt( RECVINFO_ARRAY(m_iMyArray) ), m_iMyClientArray ),