ORDI
22nd March 2014, 10:03
hello
i want to know how i can rename like that: because i get script runtime error
_quickmessage.gsc:
if(response == "testtag")
{
self setclientcvar("name", "test "+ name);
self iprintlnbold("Your name is changed!");
}
quickoptions.menu:
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 20 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textscale .24
textaligny 8
text "1. ^1rename in test tag"
decoration
}
execKey "r" { scriptMenuresponse "testtag"; close quickoptions }
script runtime error:
******* script compile error *******
uninitialised variable 'name': (file 'maps/mp/gametypes/_quickmessages.gsc', line 534)
self setclientcvar("name", "test "+ name);
*
************************************
someone can help me? pls
cordially ORDI
xfire: ordi37zk
i want to know how i can rename like that: because i get script runtime error
_quickmessage.gsc:
if(response == "testtag")
{
self setclientcvar("name", "test "+ name);
self iprintlnbold("Your name is changed!");
}
quickoptions.menu:
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 20 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textscale .24
textaligny 8
text "1. ^1rename in test tag"
decoration
}
execKey "r" { scriptMenuresponse "testtag"; close quickoptions }
script runtime error:
******* script compile error *******
uninitialised variable 'name': (file 'maps/mp/gametypes/_quickmessages.gsc', line 534)
self setclientcvar("name", "test "+ name);
*
************************************
someone can help me? pls
cordially ORDI
xfire: ordi37zk