Script problem [Left Yellow words]

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
El serg
Corporal
Posts: 28
Joined: Tue Oct 07, 2003 10:38 pm
Contact:

Script problem [Left Yellow words]

Post by El serg »

okay i made this script and it a script were it makes the yellow word appare on the screen on the left i made one before and made a new one for a clan now it will not work so here is the script also its for SH so what im i missing?:

Code: Select all

main: 

setcvar "g_announce" "1" 
setcvar "g_obj_alliedtext2" "?************************?" 
setcvar "g_obj_alliedtext3" "<-(RaGe)-> Clan Server" 
setcvar "g_obj_axistext2" "Mod By ?erg Of 89?h" 
setcvar "g_obj_axistext3" "?*************************?" 


level waittill spawn 


_mymessage: 

while (1) 
{ 
if (getcvar (g_announce)=="1") 
{ 
thread mytext 
} 
wait 160 
} 
end 

mytext: 
wait 6 
iprintln "***Welcome to the <-(RaGe)-> Clan Server***" \n ("ADMIN: " + getcvar "name")
wait 4
iprintln "Rules: No Grenade rifles, or Bazookas, unless the host or other clan members say otherwise." 
wait 6 
iprintln "***Visit us on AIM, or at www.therageclan.com**" 
wait 4
iprintln "***A special thanks to ||89?h||?erg||L|| for mods, and help with the server.***"
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

Change to this:

mytext:
wait 6
iprintln "***Welcome to the <-(RaGe)-> Clan Server***"
iprintln ("ADMIN: " + getcvar "name")
wait 4



and it will work ok.
Tom Trude,

Image
El serg
Corporal
Posts: 28
Joined: Tue Oct 07, 2003 10:38 pm
Contact:

Post by El serg »

AH yes almost forgot about that line LOL thx man
El serg
Corporal
Posts: 28
Joined: Tue Oct 07, 2003 10:38 pm
Contact:

Post by El serg »

yo sis not work heres the script

Code: Select all

main: 

setcvar "g_announce" "1" 
setcvar "g_obj_alliedtext2" "?************************?" 
setcvar "g_obj_alliedtext3" "<-(RaGe)-> Clan Server" 
setcvar "g_obj_axistext2" "Mod By ?erg Of 89?h" 
setcvar "g_obj_axistext3" "?*************************?" 


level waittill spawn 


_mymessage: 

while (1) 
{ 
if (getcvar (g_announce)=="1") 
{ 
thread mytext 
} 
wait 120 
} 
end 

mytext: 
wait 8 
iprintln "***Welcome to the <-(RaGe)-> Clan Server***" 
iprintln ("ADMIN: " + getcvar "name") 
wait 10 
iprintln "?Rules?:No NadeRifles, No Bazookas, Unless The Host Or Other Clan Members Say OtherWise!" 
wait 8 
iprintln "***Visit Us On AIM, or at www.TheRageClan.com**" 
wait 10
iprintln "***A Special Thanks To ||89?h||?erg||L|| For Mods, And Help With The Server.***"
end
El serg
Corporal
Posts: 28
Joined: Tue Oct 07, 2003 10:38 pm
Contact:

Post by El serg »

some one do a new one with the right sruff
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

console

Post by tltrude »

The game console will give you the error (key ~).
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

iprintln ("ADMIN: " + getcvar "name")

should be

iprintln ("ADMIN: " + (getcvar "name"))

or

iprintln "ADMIN: " (getcvar name)
Image
El serg
Corporal
Posts: 28
Joined: Tue Oct 07, 2003 10:38 pm
Contact:

Post by El serg »

this jv_map

Code: Select all

main: 

setcvar "g_announce" "1" 
setcvar "g_obj_alliedtext2" "?************************?" 
setcvar "g_obj_alliedtext3" "<-(RaGe)-> Clan Server" 
setcvar "g_obj_axistext2" "Mod By ?erg Of 89?h" 
setcvar "g_obj_axistext3" "?*************************?" 


level waittill spawn 


_mymessage: 

while (1) 
{ 
if (getcvar (g_announce)=="1") 
{ 
thread mytext 
} 
wait 120 
} 
end 

mytext: 
wait 8 
iprintln "***Welcome to the <-(RaGe)-> Clan Server***" 
iprintln "?ADMIN?: " (getcvar name)
 wait 10 
iprintln "?Rules?:No NadeRifles, No Bazookas, Unless The Host Or Other Clan Members Say OtherWise!" 
wait 8 
iprintln "***Visit Us On AIM, or at www.TheRageClan.com**" 
wait 10
iprintln "***A Special Thanks To ||89?h||?erg||L|| For Mods, And Help With The Server.***"
end
Post Reply