View Single Post
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, 377 views)
File Type: smx hextags_fixedtime.smx (10.5 KB, 364 views)
File Type: sp Get Plugin or Get Source (hextags_notime.sp - 334 views - 8.5 KB)
File Type: sp Get Plugin or Get Source (hextags_fixedtime.sp - 341 views - 8.5 KB)
__________________
coding & free software

Last edited by shanapu; 12-31-2017 at 15:35.
shanapu is offline