Page 1 of 1
"h" to console with " "? \"?
Posted: Sun Apr 03, 2005 8:41 pm
by Elgan
how would i do
stufftext "hi"
with the " and ".
tried using \" but its not working!!
Posted: Sun Apr 03, 2005 10:53 pm
by tltrude
What are you asking, how to skip to the next line? Just do another stufftext.
Here is how the loading sign get seen.
postinclude ui/loadingbar.txt // flashing loading sign
Maybe what you are looking for is something like this.
stuffcommand "centerprint Floor4"
Posted: Sun Apr 03, 2005 11:00 pm
by Elgan
from script..
when u enter a cvar in console u have to put " " arround the line or it only uses the first word,
camper_cmd "0 stufftext say hi"
if i do froms cript stufftext "0 stufftext say hi"
it wud only be lik eentering
camper_cmd "0"
Posted: Sun Apr 03, 2005 11:05 pm
by tltrude
Maybe what you are looking for is something like this.
stuffcommand "centerprint Floor4"
Or this.
stuffcommand "primarydmweapon smg;join_team allies;"popmenu 0;dm_playermodel american_Army"
Posted: Sun Apr 03, 2005 11:11 pm
by Elgan
tltrude wrote:Maybe what you are looking for is something like this.
stuffcommand "centerprint Floor4"
nope. the stufftext say thing was just an example sorry.
i just need ot be able to stufftext something with more then one word.
like
stufftext camper_cmd "so_domething do_it_now"
and it wud like like entering it into console.
script
Posted: Sun Apr 03, 2005 11:19 pm
by tltrude
yeah, try a semicolon ";".
Posted: Sun Apr 03, 2005 11:34 pm
by Elgan
the l seperates the string. i need to bundle it up./
sorry im never clear:(.
the ; splits it up.
camper_cmd is a cvar. if u type camper_cmd hello world. it would be the same as typing camper_cmd hello. mohaa doesnt count the full string. it stops at the " " space. so to catcxh it all i have to do. camper_cmd "hello world".
Now thats easy to type in console but i have some script that loops through the players to stufftext this.
rcon camper_cmd "im_admin " + $player.entnum
then the script finds the admin by getting the ent num. Then makes that player the admin so it knows to send all info to this player.
i cant send this
"rcon camper_cmd im_admin " + $player.entnum
because the console will only take the cvars first value (im_admin) and miss off the number.
i would like ot be able to just get the ent num on the end also by doing something like this.
("rcon camper_cmd \"im_admin " + $player.entnum + "\"")
but it dont work:(.
alternativly i cud make 63 versions of imadmin(0-62) orrr send the cmd to see if the player is admin and wait 5 seconds if nothing was recieved then the player is no admin. moove onto next. but this would take agesss and i wanna be able to find the admins quickly on each level.
so ..i hope everyone understands now:)..or just more confused:P.
Posted: Mon Apr 04, 2005 11:57 am
by Rookie One.pl
I know what you mean, been trying to figure it out myself a while ago but no result...

Guess there's no way to do this...

Posted: Mon Apr 04, 2005 12:32 pm
by Elgan
Rookie One.pl {sfx} wrote:I know what you mean, been trying to figure it out myself a while ago but no result...

Guess there's no way to do this...


grrrrrrrr.
ill have ot do it the lonng way nowwwwwwwwww
Posted: Tue Apr 05, 2005 12:54 am
by mefy
Maybe try double-escaping it, like this:
("rcon camper_cmd \\\"im_admin " + $player.entnum + "\\\"")
Posted: Tue Apr 05, 2005 7:31 am
by Elgan
nope:(
Posted: Sun Apr 10, 2005 11:47 pm
by HDL_CinC_Dragon
do u mean something of the sort of
in console: say "im saying this as though I press T... but I didnt"
Posted: Mon Apr 11, 2005 12:04 am
by Elgan
[HDL]-{Gen} Dragon wrote:do u mean something of the sort of
in console: say "im saying this as though I press T... but I didnt"
yep..i think..:S
Posted: Mon Apr 11, 2005 12:07 am
by HDL_CinC_Dragon
w00t! finally I served some use on this Earth

Posted: Mon Apr 11, 2005 7:48 am
by Elgan
but in scripot witha cvar.hehehe