27.12.2011, 12:07
An invalid P-Code error can also appear if you upload the .amx script (via FTP) in ASCII mode rather than Binary mode. I've had that problem several times, and once was trying to fix it for 3 hours (uploading, deleting, redownloading and untarring server packages, etc). When using FTP, all .amx scripts should be uploaded in binary mode.