04.08.2015, 09:59
Here is a fix:
# => %
And if you want to write a #, you have to write this in the chat: \#
Have fun. Maybe it will fix in the next changelog? @Kalcor:
PHP Code:
stock _Fix(const string[],bool:chat=false) {
new tmp[145],pos = strfind(string,"#");
strcat(tmp,string);
if(pos == -1) return tmp;
for(;;) {
if(tmp[((pos-1) < 0)?0:(pos-1)] != '\\') {
strdel(tmp,pos,pos+1),strins(tmp,(!chat)?("%%"):("%%%%"),pos,sizeof tmp);
pos = strfind(tmp,"#",false,pos+((!chat)?(2):(4)));
}
else {
strdel(tmp,pos-1,pos);
pos = strfind(tmp,"#",false,pos);
}
if(pos == -1) break;
}
return tmp;
}
And if you want to write a #, you have to write this in the chat: \#
Have fun. Maybe it will fix in the next changelog? @Kalcor: