Jump to content

strings and integers? concat operator?


mrb

Recommended Posts

Probably syntax, but it's probably easiest to give a short example of what I'm trying to do:

 

(note: ret,x,y variables already declared)

 

beginstate 41;

ret = get_text_response("Enter town number:");

x = get_text_response("Enter town number:");

y = get_text_response("Enter town number:");

if ((ret != "") && (x != "") && (y != "")) {

move_to_new_town(ret,x,y);

//should these be: >0 (integers)

}

break;

 

doesn't work!

 

For debugging purposes I've tried these

after above:

 

message_dialog(ret,"");

or

message_dialog(_ret_,"");

 

doesn't work!

 

Is this a strings/integers thing?

Any ideas?

 

Thanks,

 

mrb

 

P.S. Is there a concat operator?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...