i made a check box using sprite for enable\disable [username] and [password] and i used one object for multiple instance in the room
it enter data in registry
1)username
2)password
i want when i check it it must enter value (1) and again if i unchecked it enter value(0)
here is the code i used for chick box
//create event value="0" chk_box =0
//step event
if chk_box =0{
image_index=0
}
else
if chk_box =1{
image_index=1
}//left mouse press event
if chk_box =0{
chk_box=1
value="1"
}
else
if chk_box =1{
chk_box=0
value="0"
}
execute_string(reg)in room object creation code for instance [username]
//creation code for username
reg=registry_set_root(0)
reg=registry_write_string_ext("Software\game\","Username",value)and in room object creation code for instance [password]
//creation code for password
reg=registry_set_root(0)
reg=registry_write_string_ext("Software\game\","Password",value)but the problem is when i run it show an error
please help me!___________________________________________
EXECUTION ERROR in creation code for instance 100180 in room test
Error in code at line 3:
reg=registry_write_string_ext("Software\game\","Username",value)
^
at position 60: Unknown variable value
Edited by gameside, 25 February 2012 - 12:19 PM.











