Quote:
Originally Posted by Papero
|
Quote:
Originally Posted by Papero
It is impossible... Did you completely remove that line and compile the plugin properly?
|
Quote:
Originally Posted by Rale
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
As I sad I'm not at home right now.
I will in 4/5 days.
|
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!