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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-07-2013 , 16:29   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1571

Quote:
Originally Posted by DJ Tsunami View Post
Version 0.6 released, the SMX in the first post should work on CS:GO, but I don't have it, so feel free to test it.
You do realize that #if is a compile-time check and that any version compiled with SourceMod 1.5 won't run on SourceMod 1.4?

The proper way to do it is (and I stole this from Asherkin or psychonic, I forget which):

PHP Code:
//In AskPluginLoad2 or OnPluginStart
    
MarkNativeAsOptional("GetUserMessageType");

//Where you use it
    
if (GetFeatureStatus(FeatureType_Native"GetUserMessageType") == FeatureStatus_Available && GetUserMessageType() == UM_Protobuf)
    { 
Note that this can only be compiled under SourceMod 1.5, but still works on 1.4.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 02-07-2013 at 16:32.
Powerlord is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 02-07-2013 , 17:34   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1572

Quote:
Originally Posted by Powerlord View Post
You do realize that #if is a compile-time check and that any version compiled with SourceMod 1.5 won't run on SourceMod 1.4?
I realize that, I think most people that compile on 1.5 will also run it on 1.5. Your version doesn't compile on 1.4, so I'll combine both of our solutions, since the forum compiler is 1.4. But you're right, I guessed the solution and was too lazy to ask psychonic.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 02-07-2013 , 18:31   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1573

Quote:
Originally Posted by DJ Tsunami View Post
I realize that, I think most people that compile on 1.5 will also run it on 1.5. Your version doesn't compile on 1.4, so I'll combine both of our solutions, since the forum compiler is 1.4. But you're right, I guessed the solution and was too lazy to ask psychonic.
Are there any important bug fixes in 0.6 that CSS users should update from previous version?
__________________
cw main:

cw speedruns:
vodka00 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 02-08-2013 , 03:39   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1574

If you were still running 0.5.5, the only bug that could happen is not everyone may receive the advertisements. That's now fixed. Others have released versions in the past few years that also fixed this (for example 0.6.2 by altex), and which include more stuff like better color support. I haven't had the time yet to look into any of that.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
ss2miraitrunks
Senior Member
Join Date: Dec 2005
Old 02-08-2013 , 04:54   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1575

After updating to .6 my advertisements are only white now.
Even if i specificy color, it won't change it.

=X
__________________


ss2miraitrunks is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 02-08-2013 , 05:41   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1576

Which game and which version of SourceMod are you using? And do your advertisements use {TEAM}?
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 02-08-2013 at 06:44.
DJ Tsunami is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 02-08-2013 , 14:09   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1577

nice - but yeah without the hex color support that was posted a while back I'll accept the small bug of some not viewing it and just reload them every so often to fix that... I'll keep an eye out for hex color support in this update.
Horsedick is offline
kingpin11
Member
Join Date: Jul 2012
Old 02-09-2013 , 16:24   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1578

HI

after update i have only white ads
I use csgo with last sm and mm Snapshot

Quote:
"Advertisements"
{
"1"
{
"type" "S"
"text" "{GREEN}http://TAS-Gaming.de"
}
"2"
{
"type" "S"
"text" "{GREEN}Komm in unser TS3! {RED}92.51.180.1610133"
}
"3"
{
"type" "S"
"text" "{GREEN}Finde jetzt deine Rank-Platzierung heraus! {RED}rank, statsme, top10"
}
"4"
{
"type" "S"
"text" "{GREEN}Du magst eine andere Map? Dann tippe jetzt ein: {RED}nominate, rtv"
}
"5"
{
"type" "S"
"text" "{GREEN}Kein PRO? Dann tippe ein: {RED}!resetscore"
}
"6"
{
"type" "S"
"text" "{GREEN}Wir suchen immer Admins! {RED}Melde dich bei uns im TS3 oder auf www.TAS-Gaming.de"
}
"7"
{
"type" "S"
"text" "{GREEN}Aktuelle Map: {DEFAULT}{CURRENTMAP}"
}
"8"
{
"type" "S"
"text" "{GREEN}Nächste Map: {DEFAULT}{SM_NEXTMAP}"
}
"9"
{
"type" "S"
"text" "{GREEN}Es ist {RED}{TIME24} {GREEN}Uhr"
}
"10"
{
"type" "C"
"text" ">>> www.TAS-Gaming.de <<<"
}
}
What must i do ?

many thx
kingpin11 is offline
imoda
Member
Join Date: Apr 2010
Old 02-09-2013 , 17:10   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1579

Getting

Code:
14:08:44 sm plugins load advertisements
14:08:44 [SM] Plugin advertisements.smx failed to load: Native "BfWriteByte" was not found.
On CS:GO
imoda is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 02-09-2013 , 17:13   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1580

Don't use the Get Plugin link for CS:GO, use the attached advertisements.smx.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami 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 16:42.


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