Hey
Okay, so I've been trying a lot of things to put the name you enter on the registration screen, to appear when you read a sign, for example.
This is what I have done:
global.name = ini_open('Player' + string(argument0) + '.mgb'); name = ini_read_string('Player', 'name', '');
And then when you read the sign:
Message("Your name is: "+global.name+". ")
I know for sure that the top code is right, but when I go to read the sign, I get the error:
ERROR in
action number 3
of Key Press Event for Z-key Key
for object objTestRoomSign1:
Error in code at line 1:
Message("Your name is: "+global.name+". ")
at position 33: Wrong type of arguments to +.
So I go to erase the two "+"
Then when I play the game again, I get this error:
FATAL ERROR in
action number 3
of Key Press Event for Z-key Key
for object objTestRoomSign1:
COMPILATION ERROR in code action
Error in code at line 1:
Message("Your name is: "global.name". ")
at position 25: Symbol , or ) expected.
So I am getting kinda frustrated with this.
Can anyone help?
Thanks
-Mewgull