So i found out why it does this, just to be clear i am using a pirated version. But i found the solution to this problem so my CoD World at War was inside a folder and the folder is inside another folder.
(Because i was re-installing it so many times) So i put the CoD World at War folder in my desktop (And also i made it an administrator) and for some reason it worked
(Well i don't know if this works for everyone but that's my solution for my problem)
By the way my CoD World at War folder was like this. (I just drag CoD WaW in my desktop and it fixed it)
Folder/Folder/Folder/Folder/CoD WaW