AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error Con ShowSyncHudMsg,get_pcvar_float, OrpheuCreateFunction (https://forums.alliedmods.net/showthread.php?t=312513)

CoBus 12-06-2018 20:56

Error Con ShowSyncHudMsg,get_pcvar_float, OrpheuCreateFunction
 
PHP Code:

//L 12/06/2018 - 17:24:23: HudSyncObject -1 is invalid
//L 12/06/2018 - 17:24:23: [AMXX] Displaying debug trace (plugin "zp_tcs5.amxx", version "v5.7.1")
//L 12/06/2018 - 17:24:23: [AMXX] Run time error 10: native error (native "ShowSyncHudMsg")
//L 12/06/2018 - 17:24:23: [AMXX]    [0] zp_tcs5.sma::game_blockConditions (line 23622)
public welcomeMsg()
{
    
set_hudmessage(25500, -1.00.2513.04.04.03.0, -1);
//23622    ShowSyncHudMsg(0, g_Hud, "¡ EL VIRUS-T SE HA LIBERADO !");
    
    
set_lights(g_lights[0]);


--------------
PHP Code:

//L 12/06/2018 - 17:24:21: [AMXX] Displaying debug trace (plugin "zp_tcs5.amxx", version "v5.7.1")
//L 12/06/2018 - 17:24:21: [AMXX] Run time error 10: native error (native "get_pcvar_float")
//L 12/06/2018 - 17:24:21: [AMXX]    [0] zp_tcs5.sma::event_HLTV (line 6008)

set_task(2.0"welcomeMsg"TASK_WELCOMEMSG);
    
    
remove_task(TASK_MAKEZOMBIE);
//6008    set_task(get_pcvar_float(g_CVAR_Delay), "makeZombieTask", TASK_MAKEZOMBIE);
    
    
g_taringa_at_night 0;
    
g_only_modes 0;
    
    static 
iYearMonthDay[3];
    static 
iTimeToUnix[3];
    
    
date(iYearMonthDay[0], iYearMonthDay[1], iYearMonthDay[2]);
    
    
iTimeToUnix[0] = TimeToUnix(iYearMonthDay[0], iYearMonthDay[1], iYearMonthDay[2], 130000);
    
iTimeToUnix[1] = TimeToUnix(iYearMonthDay[0], iYearMonthDay[1], iYearMonthDay[2], 170000);
    
    if(
arg_time() >= iTimeToUnix[0] && arg_time() < iTimeToUnix[1])
    {
        
g_taringa_at_night 1;
        
colorChat(0TERRORIST"%s!tGAM!NGA AT DAY!!y Tu experiencia y ammo packs sube un !g+x1!y"ZP_PREFIX);
    } 

-------------
PHP Code:

L 12/06/2018 17:24:11: [ORPHEUInvalid function structure "PM_Move"

//L 12/06/2018 - 17:24:11: [AMXX] Displaying debug trace (plugin "zp_tcs5.amxx", version "v5.7.1")
//L 12/06/2018 - 17:24:11: [AMXX] Run time error 10: native error (native "OrpheuCreateFunction")
//L 12/06/2018 - 17:24:11: [AMXX]    [0] orpheu_stocks.inc::OrpheuGetDLLFunction (line 59)
//L 12/06/2018 - 17:24:11: [AMXX]    [1] zp_tcs5.sma::game_blockConditions (line 3551)

#if defined USE_ORPHEU
//3551        OrpheuRegisterHook(OrpheuGetDLLFunction("pfnPM_Move", "PM_Move"), "OnPM_Move");
        
OrpheuRegisterHook(OrpheuGetFunction("PM_Jump"), "OnPM_Jump");
        
OrpheuRegisterHook(OrpheuGetFunction("PM_Duck"), "OnPM_Duck");
    
#endif
stock OrpheuFunction:OrpheuGetDLLFunction(const memberName[],const libFunctionName[])
{
    static 
OrpheuStruct:OrpheuDLLFunctions
    
    
if(!OrpheuDLLFunctions)
    {
        
OrpheuDLLFunctions OrpheuGetDLLFunctionsStruct()
    }
    
//59    return OrpheuCreateFunction( OrpheuGetStructMember(OrpheuDLLFunctions,memberName),libFunctionName )



CrazY. 12-07-2018 11:05

Re: Error Con ShowSyncHudMsg,get_pcvar_float, OrpheuCreateFunction
 
1° g_Hud is not valid sync obj as the message warns. Check whether you forget to CreateHudSyncObj and/or if you assigned -1 to that variable.

2° You do not provided full message, but probably g_CVAR_Delay is not a valid cvar pointer and/or the callback makeZombieTask doesn't exists.

3° You probably do not installed orpheu and it's signatures the right way, but anyway I can't afirm with certainly
because I'm not expert with orpheu.

Besides, people will not be able to fix these errors themselves without full source code.


All times are GMT -4. The time now is 07:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.