include warn
#1

C:\Users\user\Desktop\MetLife\pawno\include\YSI\y_ hooks/impl.inc(2861) : warning 219: local variable "rx" shadows a variable at a preceding level
C:\Users\user\Desktop\MetLife\pawno\include\YSI\y_ hooks/impl.inc(2861) : warning 219: local variable "ry" shadows a variable at a preceding level
C:\Users\user\Desktop\MetLife\pawno\include\YSI\y_ hooks/impl.inc(2861) : warning 219: local variable "rz" shadows a variable at a preceding level
Код:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
	P:2("Hooks_OnPlayerEditDynamicObject called: %d, %d, %d, %f, %f, %f, %f, %f, %f", playerid, objectid, response, x, y, z, rx, ry, rz);
	new
		end   = _:YSI_g_sCallbackEnd[ALS_OnPlayerEditDynamicObject],
		start = _:YSI_g_sCallbackStart[ALS_OnPlayerEditDynamicObject],
		ret = ALS_R_PlayerEditDynamicObject;
	while (start++ != end)
	{
		#emit PUSH.S rz
		#emit PUSH.S ry
		#emit PUSH.S rx
		#emit PUSH.S z
		#emit PUSH.S y
		#emit PUSH.S x
		#emit PUSH.S response
		#emit PUSH.S objectid
		#emit PUSH.S playerid
		#emit PUSH.C     36
		#emit CONST.alt  YSI_g_sCallbackAddresses
		#emit LOAD.S.pri start
		//#emit INC.pri
		//#emit STOR.S.pri start
		#emit LIDX
		#emit MOVE.alt
		#emit LCTRL      6
		#emit ADD.C      24
		#emit PUSH.pri
		#emit MOVE.pri
		#emit SCTRL      6
		#emit MOVE.alt
		#emit CONST.pri  0xFFFFFFFE
		#emit AND
		#emit PUSH.pri
		#emit LOAD.S.pri ret
		#emit AND
		#emit POP.alt
		#emit OR
		#emit STOR.S.pri ret
		if (ret < 0) return ret + 1;
	}
	return ret;
}
warn line
public OnPlayerEditDynamicObject(playerid, objectid, response, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz)[/CODE]
[code]C:\Users\user\Desktop\MetLife\pawno\include\YSI\in ternal\..\y_scriptinit.inc(244) : warning 201: redefinition of constant/macro (symbol "OnGameModeExit")
C:\Users\user\Desktop\MetLife\pawno\include\YSI\in ternal\..\y_scriptinit.inc(251) : warning 201: redefinition of constant/macro (symbol "OnFilterScriptExit")
Lines
Код:
    #if defined _ALS_OnGameModeExit
        #undef OnGameModeExit
    #else
        #define _ALS_OnGameModeExit
    #endif
    #define OnGameModeExit ScriptInit_OnGameModeExit
Код:
    #if defined _ALS_OnFilterScriptExit
        #undef OnFilterScriptExit
    #else
        #define _ALS_OnFilterScriptExit
    #endif
    #define OnFilterScriptExit ScriptInit_OnFilterScriptExit
what do for this ?
Reply
#2

refresh, HELPP
REPP +++
Reply
#3

You have defined the variables rx, ry and rz somewhere in your script, on a higher level, before the inclusion of YSI. Likely, an other poorly written include (which you inlcuded before YSI) is causing the problem.
Reply
#4

in gamemode , not.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)