View Single Post
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