still need help.
|
I'm trying to add colors to my yell command, but when i use this code.
it makes it like this [Owner] name: hai.Code:String rank = ""; if (client.playerRights == 3) rank = "@red@[Owner] "; client.yell(rank + client.playerName +": " +command.substring(5)); } }
i just want it to be [Owner] name: hai.
still need help.
try that.Code:String rank = (playerRights == 3) ? "[@red@Owner@bla@] " :""; client.yell(rank + client.playerName +": +command.substring(5));
@Ecstasy'
had to change it a bit.
reppedCode:String rank = ""; if(client.playerRights == 3) rank = "[@red@Owner@bla@]"; client.yell(rank + client.playerName + ": "+ command.substring(5)); } }
Thanks. And umm no mine shoulda worked lol, its the same as yours just a different style.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |