26.07.2013, 13:54
CallRemoteFunction - incorrectly conveys the dynamic parameters
FS CODE:
INCLUDE (MODE):
call:
result of the call:
If called directly from mode (/include):
Result:
It turns out that the function CallRemoteFunction - wryly conveys the dynamic parameters.
FS CODE:
Код:
#define core_Detected(%0,%1) \ CallRemoteFunction("ProtectionDetected",%0,%1)
Код:
public ProtectionDetected( playerid, cheatid, {Float,_}:... ) { printf( "arg = %d, ProtectionDetected( %d, %d, %d )", numargs( ), getarg( 0, 0 ), getarg( 1, 0 ), getarg( 2, 0 ) ); }
Quote:
core_Detected( "ddd", playerid, MONEY_CHEAT, ( itmp[ 0 ] - ac_PData[ i ][ ac_Money ] ) ); // playerid = 0, MONEY_CHEAT = 0, ( itmp[ 0 ] - ac_PData[ i ][ ac_Money ] ) = random size(say, at the moment 198 ) |
Quote:
[17:41:25] arg = 3, ProtectionDetected( 0, 0, 8192 ) |
Код:
rCmd[""]->ptest( playerid, success ) { ProtectionDetected( playerid, 0, 100 ); return true; }
Quote:
[17:41:16] arg = 3, ProtectionDetected( 0, 0, 100 ) - OK! |