[HELP] Include
#1

I have a problem, when I put #include <YSI/y_ini> it show me 1 error i 1 warning.

Reply
#2

Do you have the latest version of YSI? YSI 4?
Reply
#3

i am updated include Ysi and it wan't work.
YSI version 3.09.0684
PHP код:
C:\Users\HOME\Desktop\pawno\include\YSI\y_hooks/impl.inc(2029) : error 021symbol already defined"OnPlayerUpdate"
C:\Users\HOME\Desktop\pawno\include\YSI\y_hooks/impl.inc(3119) : warning 219local variable "rx" shadows a variable at a preceding level
C
:\Users\HOME\Desktop\pawno\include\YSI\y_hooks/impl.inc(3119) : warning 219local variable "ry" shadows a variable at a preceding level
C
:\Users\HOME\Desktop\pawno\include\YSI\y_hooks/impl.inc(3119) : warning 219local variable "rz" shadows a variable at a preceding level
C
:\Users\HOME\Desktop\pawno\include\YSI\y_ini.inc(1345) : warning 219local variable "temp" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

Reply
#4

PHP код:
C:\Users\HOME\Desktop\pawno\include\YSI\y_hooks.inc(2774) : error 021symbol already defined"OnPlayerUpdate" Lines 
PHP код:
public OnPlayerUpdate(playerid)
{
    
P:7("Hooks_OnPlayerUpdate called: %d"playerid);
    new
        
end   YSI_g_sCallbackData[ALS_OnPlayerUpdate][E_FUNC_HOOK_DATA_END],
        
start YSI_g_sCallbackData[ALS_OnPlayerUpdate][E_FUNC_HOOK_DATA_START],
        
ret ALS_R_PlayerUpdate;
    if (
start == end)
    {
        
P:7("Hooks_OnPlayerUpdate end");
        
HOOK_CALL<PlayerUpdate>
    }
    new
        
idx,
        
pointer,
        
re end;
    if (
end sizeof (YSI_g_sCallbackAddresses))
    {
        
re sizeof (YSI_g_sCallbackAddresses);
        if (
start != sizeof (YSI_g_sCallbackAddresses)) idx YSI_g_sLastFoundIndex;
    }
    
// Do the initial fast elements.
    
while (start != re)
    {
        
pointer YSI_g_sCallbackAddresses[start++];
        
#emit PUSH.S playerid
        #emit PUSH.C     4
        #emit LCTRL      6
        #emit ADD.C      28
        #emit PUSH.pri
        #emit LOAD.S.pri pointer
        #emit SCTRL      6
        #emit CONST.alt  0xFFFFFFFF
        #emit STOR.S.pri ret
        #emit JEQ        hooks_do_hooks_call_no_als
    
}
    
// Get any remaining pointers the old way.
    
while (start++ != end)
    {
        
idx AMX_GetPublicPointer(idxpointer"@yH_PlayerUpdate");
        
#emit PUSH.S playerid
        #emit PUSH.C     4
        #emit LCTRL      6
        #emit ADD.C      28
        #emit PUSH.pri
        #emit LOAD.S.pri pointer
        #emit SCTRL      6
        #emit CONST.alt  0xFFFFFFFF
        #emit STOR.S.pri ret
        #emit JEQ        hooks_do_hooks_call_no_als
    
}
    
// Do ALS just in case (YSI no longer uses this though now).
    
P:7("Hooks_OnPlayerUpdate end");
    
HOOK_RETURN<PlayerUpdate>

Reply
#5

BUMP
Reply
#6

They're not ysi errors..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)