Not bad so far, but your problem boils down to one line of code at fault.
But it does contain multiple faults...
ENTITY* MODEL = ent_create("character.mdl",vector(25,55,45),NULL);
Youve already defined MODEL as a global entity pointer, so you can drop the "ENTITY*" from this line.

That takes us down to
MODEL = ent_create("character.mdl",vector(25,55,45),NULL);
This is OK, but youve forgotten to get the model run the main_player action.

That now takes us down to
MODEL = ent_create("character.mdl",vector(25,55,45),main_player);
This is almost working, but using the source code in your link, the compile will fail.
Thats because the main_player action is coded AFTER the main in the source file, so the compiler
doesnt know about the existance of the main_player action when it tries to compile the ent_create line.
Just move the whole main_player action to be above main and it will fix this fault.

And finally, your main_player action is setting the MODEL pointer with the MODEL = me; line,
so you dont need to do it at the ent_create line as well. But this is just a tidying thing.
Not an actual fault. Im just trying to save you from doing the same thing twice.

So that brings the old ent_create line down to be just
ent_create("character.mdl",vector(25,55,45),main_player);
(and moving the main_player action) and it should now work.

PS I would choose a name other than "MODEL" for your player entity, as it MAY be a reserved word.

PPS Welcome aboard.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial