Well now I fixed that problem I am starting to get further than before thank god lol, I fixed it by putting
ent_create("character.mdl", vector(25,55,45), main_player);
at the end of the main function. Right now the map, character and skylayer loads fine but it keeps saying "Empty pointer in main", if I click okay it just pops back up.