CallRemoteFunction - incorrectly conveys the dynamic parameters
#1

CallRemoteFunction - incorrectly conveys the dynamic parameters

FS CODE:
Код:
#define core_Detected(%0,%1) \
	CallRemoteFunction("ProtectionDetected",%0,%1)
INCLUDE (MODE):
Код:
public	ProtectionDetected( playerid, cheatid, {Float,_}:... )	{
	
		printf( "arg = %d, ProtectionDetected( %d, %d, %d )", numargs( ), getarg( 0, 0 ), getarg( 1, 0 ), getarg( 2, 0 ) );
}
call:
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 )

result of the call:
Quote:

[17:41:25] arg = 3, ProtectionDetected( 0, 0, 8192 )

If called directly from mode (/include):
Код:
rCmd[""]->ptest( playerid, success )
{
		ProtectionDetected( playerid, 0, 100 );
		return true;
}
Result:
Quote:

[17:41:16] arg = 3, ProtectionDetected( 0, 0, 100 ) - OK!

It turns out that the function CallRemoteFunction - wryly conveys the dynamic parameters.
Reply


Messages In This Thread
CallRemoteFunction - incorrectly conveys the dynamic parameters - by Imperealist - 26.07.2013, 13:54
Re: CallRemoteFunction - incorrectly conveys the dynamic parameters - by Pottus - 26.07.2013, 14:52
Re: CallRemoteFunction - incorrectly conveys the dynamic parameters - by Imperealist - 26.07.2013, 16:33

Forum Jump:


Users browsing this thread: 2 Guest(s)