thats from Admin Pro.
if game.input_type is set as linux in the cfg, format it first.
so, ,
in your loop
while(1)
{
local.info = getcvar "mycvar"
if(local.info != ""
{
// place here
}
wait 1
}
end
if your server is only linux, of course u dont need the check. you should also just use it for what u want. look at the strings.scr (pasted above) to see what u want,
Format_replace basicaly just makes sure "__" wasnt enterd, cos if it was splitting split_line with "_" it would count 2 words, maybe, i dont even know, that all seems a lil pointless now when split_line can split with wahtever delimeter u set, hm.
okok. if u simply want to enter messages with "_"
the following would be fine
Code: Select all
while(1)
{
wait 1
local.help = getcvar "cvar"
if(local.help!="")
{
setcvar "cvar" ""
local.info = waitexec global/strings.scr::Format_replace local.info "_" " "
println local.info
}
}
you could also use str replace. but that doesnt counter for double "__"
the split string used in the ap code, splits it into an array of words. it has "`" checked as the menu sends `words_like_this. AP then uses the array to search what sort of command was enterd and looks in the command scripts for what command was enterd, player, single, multiple etc, then checkers the scripts array.
u can blag the whole system if u want. It kinda seems weird that i have format when the split string can also format, im sure i would of made split stirng format it also:S strange. nm. hehe
i hope u can get some sort of answer from this shambles:\