I'm trying to get the hang of making new macros, so I put this in command.h
I know that something like this is already included, but im just trying things out. Then I called it from my script like this
I get a compiler error saying "Expected: ;". So I open the temp.i file, and it says
with two semicolons at the end.
Can someone tell me what Im doing wrong?
Thanks a lot for your help.
Code:
#define nice_move animate_run_to_tile(tile_num(dude_obj)+1);
Code:
procedure description_p_proc begin
script_overrides;
display_msg(mstr(102));
nice_move;
end
Code:
procedure description_p_proc begin
script_overrides;
display_msg( message_str((1305),102) );
animate_move_obj_to_tile(self_obj, tile_num(dude_obj)+1, (1)); ;
end
Can someone tell me what Im doing wrong?
Thanks a lot for your help.