Try "salvagewallet" or "repairwallet" command in debug console.
the wallet doesnt even open now
when ever i open it it says "salvage wallet failed"
can anyone help me please
You don't backup your wallet data to a seperate location from roaming?
I had the same thing happen to me.
I fixed it by replacing the files I had originally deleted from roaming when I tried to resync.
Either way, there are a few things you can do.
Your best bet is do what ocminer suggested.
You can salvage your privikeys and try and create a new wallet.dat file from the corrupted .dat file with the -salvagewallet command.
Or
Recovery websites/software such as
try
https://online.officerecovery.com/sybase/