include warn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: include warn (
/showthread.php?tid=512422)
include warn -
HOB1x - 10.05.2014
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 ?
Re: include warn -
HOB1x - 11.05.2014
refresh, HELPP
REPP +++
Re: include warn -
Vince - 11.05.2014
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.
Re: include warn -
HOB1x - 12.05.2014
in gamemode , not.