I know that the key is the problem now what to change n to solve.
if(instance_id(IM_CHAR))
instance_destroy instance_id(IM_CHAR);
if (instance_create(.in_name$,IM_CHAR,getcharid(0)) < 0) {
mes "^0000ff" + .in_name$ + " ^000000- Falha na reserva!";
close;