|
Veteran Member
Join Date: Aug 2016
Location: Italy
|
01-07-2018
, 13:18
Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
|
#29
|
Quote:
Originally Posted by shanapu
PHP Code:
public Action CP_OnChatMessage(int& author, ArrayList recipients, char[] flagstring, char[] name, char[] message, bool& processcolors, bool& removecolors) { //Add colors & tags char sNewName[MAXLENGTH_NAME]; char sNewMessage[MAXLENGTH_MESSAGE]; Format(sNewName, MAXLENGTH_NAME, "%s%s%s{default}", sTags[author][ChatTag], sTags[author][NameColor], name); Format(sNewMessage, MAXLENGTH_MESSAGE, "%s%s", sTags[author][ChatColor], message); //Update the params char sTime[16]; // FormatTime(sTime, sizeof(sTime), "%R"); ReplaceString(sNewName, sizeof(sNewName), "{time}", sTime); ReplaceString(sNewMessage, sizeof(sNewMessage), "{time}", sTime); //Update the name & message strcopy(name, MAXLENGTH_NAME, sNewName); strcopy(message, MAXLENGTH_MESSAGE, sNewMessage); 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(sTime, sizeof(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
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.
__________________
Last edited by Papero; 01-07-2018 at 13:35.
|
|
|
|