Raised This Month: $32 Target: $400
 8% 

MOTDgd Advertisements (3.0.2 2020/01/04) ** Added 'rewards' (works with CSGO) **


Post New Thread Reply   
 
Thread Tools Display Modes
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 12-21-2018 , 13:04   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #851

Here is one fix for the plugin - easyhttp.inc has an error on line 884

Code:
	MarkNativeAsOptional("curl_easy_setopt_functio	n");
should be
Code:
	MarkNativeAsOptional("curl_easy_setopt_function");
There were some other issues encountered (indirectly, i was attempting to help someone fix it), im not certain if it's caused by them or what, but i give up on trying to figure it out.


line 756
Code:
if(json[m_iPos-1] == '"')
For array index out of bounds, there needs to be a check agains m_iPos when it is <= 0 during GetJSONString.
__________________

Last edited by JoinedSenses; 12-21-2018 at 14:03.
JoinedSenses is offline
RavensBro
Veteran Member
Join Date: Sep 2009
Location: Wisonsin USA
Old 01-07-2019 , 11:17   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #852

L 01/07/2019 - 00:01:09: [SM] Exception reported: Array index out-of-bounds (index -1)
L 01/07/2019 - 00:01:09: [SM] Blaming: motdgd_adverts.smx
L 01/07/2019 - 00:01:09: [SM] Call stack trace:
L 01/07/2019 - 00:01:09: [SM] [1] Line 756, include/EasyJSON.inc::GetJSONString
L 01/07/2019 - 00:01:09: [SM] [2] Line 85, include/EasyJSON.inc:ecodeJSON
L 01/07/2019 - 00:01:09: [SM] [3] Line 1025, motdgd_adverts.sp::handleEngineIO
L 01/07/2019 - 00:01:09: [SM] [4] Line 949, motdgd_adverts.sp::OnSocketReceive
RavensBro is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 01-07-2019 , 11:25   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #853

That's the error I mentioned in my previous post
__________________

Last edited by JoinedSenses; 01-07-2019 at 11:27.
JoinedSenses is offline
RavensBro
Veteran Member
Join Date: Sep 2009
Location: Wisonsin USA
Old 01-07-2019 , 18:35   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #854

//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// motdgd_adverts.sp
//
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6232-wi
ndows-ADMIN_STORE\addons\sourcemod\scripting\motdgd _adverts.sp(975) : warning 20
4: symbol is assigned a value that is never used: "MASK"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6232-wi
ndows-ADMIN_STORE\addons\sourcemod\scripting\motdgd _adverts.sp(973) : warning 20
4: symbol is assigned a value that is never used: "FIN"
// Code size: 97080 bytes
// Data size: 87712 bytes
// Stack/heap size: 16384 bytes
// Total requirements: 201176 bytes
//
// 2 Warnings.
//
// Compilation Time: 0.92 sec
// ----------------------------------------

Press enter to exit ...
RavensBro is offline
MonsteQ
Member
Join Date: May 2018
Location: Hungary
Old 01-18-2019 , 15:50   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #855

I testing with my CS:GO server, but i have a big problem plugin is not started yet.

PHP Code:
L 01/18/2019 13:10:07: [SMException reportedNative is not bound
L 01
/18/2019 13:10:07: [SMBlamingmotdgd_adverts.smx
L 01
/18/2019 13:10:07: [SMCall stack trace:
L 01/18/2019 13:10:07: [SM]   [1SocketCreate
L 01
/18/2019 13:10:07: [SM]   [2Line 895motdgd_adverts.sp::connectHub
L 01
/18/2019 13:10:07: [SM]   [3Line 223motdgd_adverts.sp::OnPluginStart
L 01
/18/2019 13:10:07: [SMUnable to load plugin "motdgd_adverts.smx"Error detected in plugin startup (see error logs
Please help me, how do i solve it?
__________________
--------------------------------
MonsteQ is offline
Include1
Member
Join Date: Feb 2016
Old 01-19-2019 , 06:49   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #856

CSGO
L 01/19/2019 - 14:29:57: SourceMod error session started
L 01/19/2019 - 14:29:57: Info (map "jb_summer_jail_v2") (file "errors_20190119.log")
L 01/19/2019 - 14:29:57: [SM] Exception reported: invalid handle 0 (error: 4)
L 01/19/2019 - 14:29:57: [SM] Blaming: motdgd_adverts.smx
L 01/19/2019 - 14:29:57: [SM] Call stack trace:
L 01/19/2019 - 14:29:57: [SM] [0] WriteFileString
L 01/19/2019 - 14:29:57: [SM] [1] Line 1135, motdgd_adverts.sp::handleSocketIO
L 01/19/2019 - 14:29:57: [SM] [2] Line 1097, motdgd_adverts.sp::handleEngineIO
L 01/19/2019 - 14:29:57: [SM] [3] Line 985, motdgd_adverts.sp::handleWebsocket
L 01/19/2019 - 14:29:57: [SM] [4] Line 960, motdgd_adverts.sp::OnSocketReceive
L 01/19/2019 - 140:09: Error log file session closed.
L 01/19/2019 - 140:11: SourceMod error session started
L 01/19/2019 - 140:11: Info (map "jb_summer_jail_v2") (file "errors_20190119.log")
L 01/19/2019 - 140:11: [SM] Exception reported: Invalid timer handle e6e092c (error 1)
L 01/19/2019 - 140:11: [SM] Blaming: motdgd_adverts.smx
L 01/19/2019 - 140:11: [SM] Call stack trace:
L 01/19/2019 - 140:11: [SM] [0] KillTimer
L 01/19/2019 - 140:11: [SM] [1] Line 238, motdgd_adverts.sp::OnConfigsExecuted
Include1 is offline
peter27
Junior Member
Join Date: Dec 2018
Old 01-25-2019 , 13:55   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #857

How would i do if i want to give my players store credits after watching a ad
peter27 is offline
Slash The Mighty
Member
Join Date: May 2006
Location: Vault 13
Old 04-14-2019 , 22:01   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #858

Code:
L 04/15/2019 - 03:58:01: [SM] Exception reported: Native is not bound
L 04/15/2019 - 03:58:01: [SM] Blaming: motdgd_adverts.smx
L 04/15/2019 - 03:58:01: [SM] Call stack trace:
L 04/15/2019 - 03:58:01: [SM]   [1] SocketCreate
L 04/15/2019 - 03:58:01: [SM]   [2] Line 895, motdgd_adverts.sp::connectHub
L 04/15/2019 - 03:58:01: [SM]   [3] Line 223, motdgd_adverts.sp::OnPluginStart
L 04/15/2019 - 03:58:01: [SM] Unable to load plugin "motdgd_adverts.smx": Error detected in plugin startup (see error logs)
Works fine on TF2, just doesn't seem to work on CSGO.
__________________
---
Slash The Mighty is offline
Send a message via AIM to Slash The Mighty Send a message via MSN to Slash The Mighty Send a message via Skype™ to Slash The Mighty
zaviier
Senior Member
Join Date: Aug 2017
Location: Indonesia
Old 10-01-2019 , 09:34   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #859

L 10/01/2019 - 210:10: [SM] Blaming: motdgd_adverts.smx
L 10/01/2019 - 210:10: [SM] Call stack trace:
L 10/01/2019 - 210:10: [SM] [1] SocketCreate
L 10/01/2019 - 210:10: [SM] [2] Line 895, motdgd_adverts.sp::connectHub
L 10/01/2019 - 210:10: [SM] [3] Line 223, motdgd_adverts.sp::OnPluginStart
L 10/01/2019 - 210:10: [SM] Unable to load plugin "motdgd_adverts.smx": Error detected in plugin startup (see error logs)
zaviier is offline
Cartitarul
New Member
Join Date: Nov 2019
Old 11-24-2019 , 19:25   Re: MOTDgd Advertisements (3.0.1 2018/12/11) ** Added 'rewards' (works with CSGO) **
Reply With Quote #860

If u get this error.

L 01/18/2019 - 13:10:07: [SM] Exception reported: Native is not bound
L 01/18/2019 - 13:10:07: [SM] Blaming: motdgd_adverts.smx
L 01/18/2019 - 13:10:07: [SM] Call stack trace:
L 01/18/2019 - 13:10:07: [SM] [1] SocketCreate
L 01/18/2019 - 13:10:07: [SM] [2] Line 895, motdgd_adverts.sp::connectHub
L 01/18/2019 - 13:10:07: [SM] [3] Line 223, motdgd_adverts.sp::OnPluginStart
L 01/18/2019 - 13:10:07: [SM] Unable to load plugin "motdgd_adverts.smx": Error detected in plugin startup (see error logs)

you shoud install this extention:

https://forums.alliedmods.net/showthread.php?t=67640

Because if u read in here https://github.com/MOTDgd-Ltd/sourcemod-plugin you`ll see that u need it .

and one more thing.
I get this error and the plugin is not working:

L 11/25/2019 - 02:09:04: [SM] Exception reported: Invalid timer handle 6aa0552 (error 1)
L 11/25/2019 - 02:09:04: [SM] Blaming: motdgd_adverts.smx
L 11/25/2019 - 02:09:04: [SM] Call stack trace:
L 11/25/2019 - 02:09:04: [SM] [0] KillTimer
L 11/25/2019 - 02:09:04: [SM] [1] Line 238, motdgd_adverts.sp::OnConfigsExecuted

Plz help
Cartitarul is offline
Reply


Thread Tools
Display Modes

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 01:42.


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