"h" to console with " "? \"?
Moderator: Moderators
"h" to console with " "? \"?
how would i do
stufftext "hi"
with the " and ".
tried using \" but its not working!!
stufftext "hi"
with the " and ".
tried using \" but its not working!!
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"
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"
Last edited by tltrude on Sun Apr 03, 2005 11:01 pm, edited 1 time in total.
nope. the stufftext say thing was just an example sorry.tltrude wrote:Maybe what you are looking for is something like this.
stuffcommand "centerprint Floor4"
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.
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.
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.
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
Maybe try double-escaping it, like this:
("rcon camper_cmd \\\"im_admin " + $player.entnum + "\\\"")
("rcon camper_cmd \\\"im_admin " + $player.entnum + "\\\"")
New Gametypes for Medal of Honor
Capture-The-Flag | Freeze-Tag | Demolition
www.planetmedalofhonor.com/mefy
Capture-The-Flag | Freeze-Tag | Demolition
www.planetmedalofhonor.com/mefy
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm



