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

[ANY] HexTags [Tags/Chat Colors & Score Tags]


Post New Thread Reply   
 
Thread Tools Display Modes
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 12-27-2017 , 12:05   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #21

Quote:
Originally Posted by Rale View Post
Any fix for windows soon?

Try to recompile the plugin removing this line:
https://github.com/Hexer10/HexTags/b...extags.sp#L148
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
Rale
AlliedModders Donor
Join Date: Sep 2010
Old 12-30-2017 , 20:51   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #22

PHP Code:
L 12/30/2017 20:46:36: [SMException reportedInvalid time format or buffer too small
L 12
/30/2017 20:46:36: [SMBlaminghextags.smx
L 12
/30/2017 20:46:36: [SMCall stack trace:
L 12/30/2017 20:46:36: [SM]   [0FormatTime
L 12
/30/2017 20:46:36: [SM]   [1Line 148d:\my profile\documents\hextags\addons\sourcemod\scripting\hextags.sp::CP_OnChatMessage
L 12
/30/2017 20:46:36: [SM]   [3Call_Finish
L 12
/30/2017 20:46:36: [SM]   [4Line 302E:\Google Drive\Projects\Sourcemod\Public\Chat-Processor\scripting\chat-processor.sp::OnSayText2 
Rale is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 12-31-2017 , 00:55   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #23

Quote:
Originally Posted by Rale View Post
PHP Code:
L 12/30/2017 20:46:36: [SMException reportedInvalid time format or buffer too small
L 12
/30/2017 20:46:36: [SMBlaminghextags.smx
L 12
/30/2017 20:46:36: [SMCall stack trace:
L 12/30/2017 20:46:36: [SM]   [0FormatTime
L 12
/30/2017 20:46:36: [SM]   [1Line 148d:\my profile\documents\hextags\addons\sourcemod\scripting\hextags.sp::CP_OnChatMessage
L 12
/30/2017 20:46:36: [SM]   [3Call_Finish
L 12
/30/2017 20:46:36: [SM]   [4Line 302E:\Google Drive\Projects\Sourcemod\Public\Chat-Processor\scripting\chat-processor.sp::OnSayText2 

It is impossible... Did you completely remove that line and compile the plugin properly?
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
Rale
AlliedModders Donor
Join Date: Sep 2010
Old 12-31-2017 , 09:29   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #24

Quote:
Originally Posted by Papero View Post
It is impossible... Did you completely remove that line and compile the plugin properly?
Yep Im pretty sure that i done that properly. If you want compile it for me and send me to pm, i'll test it and send you results.
Rale is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 12-31-2017 , 14:40   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #25

Quote:
Originally Posted by Rale View Post
Yep Im pretty sure that i done that properly. If you want compile it for me and send me to pm, i'll test it and send you results.

As I sad I'm not at home right now.
I will in 4/5 days.
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 12-31-2017 , 15:10   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #26

Quote:
Originally Posted by Papero View Post
Try to recompile the plugin removing this line:
https://github.com/Hexer10/HexTags/b...extags.sp#L148
Quote:
Originally Posted by Papero View Post
It is impossible... Did you completely remove that line and compile the plugin properly?
Quote:
Originally Posted by Rale View Post
Yep Im pretty sure that i done that properly. If you want compile it for me and send me to pm, i'll test it and send you results.
Quote:
Originally Posted by Papero View Post
As I sad I'm not at home right now.
I will in 4/5 days.
PHP Code:
public Action CP_OnChatMessage(intauthorArrayList recipientschar[] flagstringchar[] namechar[] messageboolprocesscolorsboolremovecolors)
{
    
    
//Add colors & tags
    
char sNewName[MAXLENGTH_NAME];
    
char sNewMessage[MAXLENGTH_MESSAGE];
    
Format(sNewNameMAXLENGTH_NAME"%s%s%s{default}"sTags[author][ChatTag], sTags[author][NameColor], name); 
    
Format(sNewMessageMAXLENGTH_MESSAGE"%s%s"sTags[author][ChatColor], message);
    
    
//Update the params
    
char sTime[16];
//    FormatTime(sTime, sizeof(sTime), "%R");
    
ReplaceString(sNewNamesizeof(sNewName), "{time}"sTime);
    
ReplaceString(sNewMessagesizeof(sNewMessage), "{time}"sTime);
    
    
//Update the name & message
    
strcopy(nameMAXLENGTH_NAMEsNewName);
    
strcopy(messageMAXLENGTH_MESSAGEsNewMessage);
    
    
processcolors true;
    
removecolors false;
    
    return 
Plugin_Changed;

edit:

just tested the original file and the notime.
Original throw same error as above on Windows SM 1.9.0.6223
Edited version fix error but removed time.

edit2:
had a few tests:
PHP Code:
FormatTime(sTimesizeof(sTime), "%H:%M"); 
will fix the error.

http://www.cplusplus.com/reference/ctime/strftime/
All yellow marked specifiers had same error for me on windows.

added 'fixed time version' with "%H:%M"

Btw Great plugin!
Attached Files
File Type: smx hextags_notime.smx (10.4 KB, 373 views)
File Type: smx hextags_fixedtime.smx (10.5 KB, 360 views)
File Type: sp Get Plugin or Get Source (hextags_notime.sp - 331 views - 8.5 KB)
File Type: sp Get Plugin or Get Source (hextags_fixedtime.sp - 336 views - 8.5 KB)
__________________
coding & free software

Last edited by shanapu; 12-31-2017 at 15:35.
shanapu is offline
Rale
AlliedModders Donor
Join Date: Sep 2010
Old 01-01-2018 , 06:25   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #27

@shanapu Gj mate, everything works fine now!
Rale is offline
snoopy174
Member
Join Date: May 2016
Old 01-06-2018 , 14:13   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #28

you can add command support
different tags teams
snoopy174 is offline
Send a message via Skype™ to snoopy174
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 01-07-2018 , 13:18   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #29

Quote:
Originally Posted by shanapu View Post
PHP Code:
public Action CP_OnChatMessage(intauthorArrayList recipientschar[] flagstringchar[] namechar[] messageboolprocesscolorsboolremovecolors)
{
    
    
//Add colors & tags
    
char sNewName[MAXLENGTH_NAME];
    
char sNewMessage[MAXLENGTH_MESSAGE];
    
Format(sNewNameMAXLENGTH_NAME"%s%s%s{default}"sTags[author][ChatTag], sTags[author][NameColor], name); 
    
Format(sNewMessageMAXLENGTH_MESSAGE"%s%s"sTags[author][ChatColor], message);
    
    
//Update the params
    
char sTime[16];
//    FormatTime(sTime, sizeof(sTime), "%R");
    
ReplaceString(sNewNamesizeof(sNewName), "{time}"sTime);
    
ReplaceString(sNewMessagesizeof(sNewMessage), "{time}"sTime);
    
    
//Update the name & message
    
strcopy(nameMAXLENGTH_NAMEsNewName);
    
strcopy(messageMAXLENGTH_MESSAGEsNewMessage);
    
    
processcolors true;
    
removecolors false;
    
    return 
Plugin_Changed;

edit:

just tested the original file and the notime.
Original throw same error as above on Windows SM 1.9.0.6223
Edited version fix error but removed time.

edit2:
had a few tests:
PHP Code:
FormatTime(sTimesizeof(sTime), "%H:%M"); 
will fix the error.

http://www.cplusplus.com/reference/ctime/strftime/
All yellow marked specifiers had same error for me on windows.

added 'fixed time version' with "%H:%M"

Btw Great plugin!
Thanks! Now it's fixed in the last release!

Quote:
Originally Posted by snoopy174 View Post
you can add command support
different tags teams
I will about the different tags teams soon. Added with https://github.com/Hexer10/HexTags/c...4993cc3631b5f7 . You'll need to compile the plugin by yourself, all the news are writteng in the cfg file.

Now sure about much time will require the command support and if is it really needed.
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 01-07-2018 at 13:35.
Papero is offline
ayrton09_arg
Senior Member
Join Date: Nov 2017
Old 01-14-2018 , 08:09   Re: [ANY]HexTags[Chat/Score Colors][07/01/18]
Reply With Quote #30

hello i have this problem idk why, [hextags.smx] No entries found in: "addons\sourcemod\configs\hextags.cfg"
os: windows
ayrton09_arg 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 10:31.


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