So what i did:
1. installed cf auto root using odin
2. installed twrp recovery using odin
3. then I copied gapps and cyanogen mod zip to my phone
4. made a backup of my system (boot & system)
5. wiped system,dalvikcache,cache
6. then i tried flashing with cm 11 and i got an error with code 7.
And i tried to remove the check from update-script, nothing.
Now when i to install different roms it does the same thing.
What can i do to fix this and get cm 11, because i don't like samsung original os an touch wiz????