Tere tulemast Emps-Worldi!

Registreeru kohe, et saada ligipääs kõigile meie foorumi funktsioonidele. Kui oled registreerunud ja sisse loginud, saad luua teemasid, postitada vastuseid, saata privaatsõnumeid, hallata oma profiili, vestelda teiste mängijatega vestluskastis ja palju muud. Kui oled sisse logitud, kaob see teade.

Lehed: 1

Jp

August 11, 2016, 07:33:52 pärast lõunat
Can't type / in clan chats.
I.e typing 1/100 comes up as 1100.

Mary

Vasta #1 · August 11, 2016, 08:47:27 pärast lõunat
obviously, since / counts as the start of a line in clan chat all / get negated

idk if theres a way around but ill leave your report here in case there is.
 

Jonneh

Vasta #2 · August 11, 2016, 10:39:42 pärast lõunat
obviously, since / counts as the start of a line in clan chat all / get negated

idk if theres a way around but ill leave your report here in case there is.

message.replaceFirst("^/", ""); instead of message.replace("/", "");
ignore acc pls
 
Järgmistele kasutajatele meeldis see postitus: Just Humen, Ranger 0wns

Mary

Vasta #3 · August 12, 2016, 12:47:19 enne lõunat
obviously, since / counts as the start of a line in clan chat all / get negated

idk if theres a way around but ill leave your report here in case there is.

message.replaceFirst("^/", ""); instead of message.replace("/", "");
errors (illegal/unsupported escape sequence/@not null string regex)

   public String serialize() {
      return "{\"clan\":\"" + clan + "\",\"from\":\"" + from + "\",\"message\":\"" + message.replace("\\", "/").replace("\"", "\\\"") + "\"}";
   }

this' used for clanchat ._.
 

Thomy

Vasta #4 · August 12, 2016, 02:30:18 pärast lõunat
The way java handles regexes is a bit exotic. I can just use replaceFirst with a simple string though. Thanks jonneh. :)
 
Lehed: 1