Raised This Month: $51 Target: $400
 12% 

Solved I modified a plugin, but an error occurred.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2389736818
Member
Join Date: Jul 2014
Location: China
Old 11-13-2016 , 06:29   I modified a plugin, but an error occurred.
Reply With Quote #1

I saw some of the solutions, but after the amendments still can not be resolved error.
log :
L 11/13/2016 - 19:12:25: SourceMod error session started
L 11/13/2016 - 19:12:25: Info (map "de_dust2") (file "errors_20161113.log")
L 11/13/2016 - 19:12:25: [SDKTOOLS] Invalid detour address passed - Disabling detour to prevent crashes
L 11/13/2016 - 19:121: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 11/13/2016 - 19:121: [SM] Blaming: zombie_outline.smx
L 11/13/2016 - 19:121: [SM] Call stack trace:
L 11/13/2016 - 19:121: [SM] [0] SetConVarInt
L 11/13/2016 - 19:121: [SM] [1] Line 225, C:\Users\Administrator\Desktop\sourcemod\addo ns\sourcemod\scripting\include\zo/game.inc::ZO_ExpandAllVariables
L 11/13/2016 - 19:121: [SM] [2] Line 40, zombie_outline.sp::ZO_PrepConfig
L 11/13/2016 - 19:121: [SM] [3] Line 20, zombie_outline.sp::OnPluginStart
L 11/13/2016 - 19:121: [SM] Unable to load plugin "zombie_outline.smx": Error detected in plugin startup (see error logs)

PHP Code:
public OnMainConVarChange(Handle:convar, const String:oldValue[], const String:newValue[])
{
    
SetConVarInt(h_BotJoinAfterPlayer0true);
    
SetConVarInt(h_BotDeferToHuman1true);
    
SetConVarString(h_BotChatter"off");
    
SetConVarInt(h_HudHintSound0true);

game.inc
PHP Code:
    SetConVarInt(h_BotJoinAfterPlayer0true);
    
SetConVarInt(h_BotDeferToHuman1true);
    
SetConVarString(h_BotChatter"off");
    
SetConVarInt(h_HudHintSound0true); 
Attached Files
File Type: sp Get Plugin or Get Source (zombie_outline.sp - 64 views - 9.9 KB)
File Type: inc game.inc (16.8 KB, 88 views)
__________________

Last edited by 2389736818; 11-13-2016 at 08:53.
2389736818 is offline
2389736818
Member
Join Date: Jul 2014
Location: China
Old 11-13-2016 , 07:57   Re: I modified a plugin, but an error occurred.
Reply With Quote #2

I removed the ''true'',And find the code
PHP Code:
    h_BotJoinAfterPlayer FindConVar("bot_join_after_player");
    
h_BotDeferToHuman FindConVar("bot_defer_to_human");
    
h_BotChatter FindConVar("bot_chatter");
    
h_HudHintSound FindConVar("cl_hudhint_sound"); 
I think this place should be out of the question,What should I do?
__________________

Last edited by 2389736818; 11-13-2016 at 09:02.
2389736818 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:09.


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