12 Jul 12, 04:37PM
OK I have another problem. Is there a way to remove a character (comma) from a string? I tried using strreplace but without any luck in this case
if (strstr $conline "called a vote: kick player")[alias plrname (at $conline 6); say (concatword (at $variable0)) $plrname (concatword (at $variable1 (rnd 5))) (concatword (at $variable2))]
When a vote to kick someone pops up, their name is followed by a comma. I need to remove it to use it in the variable $plrname. How to achieve that?
Thanks.
if (strstr $conline "called a vote: kick player")[alias plrname (at $conline 6); say (concatword (at $variable0)) $plrname (concatword (at $variable1 (rnd 5))) (concatword (at $variable2))]
When a vote to kick someone pops up, their name is followed by a comma. I need to remove it to use it in the variable $plrname. How to achieve that?
Thanks.