View Full Version : Little c++ error need some help

07-22-2013, 02:57 AM
Hey guys.Im trying to get this c++ script to work.Heres the error
Error 1 error C1070: mismatched #if/#endif pair in file 'c:\users\brendans\documents\github\trinitycore\sr c\server\scripts\outdoorpvp\outdoorpvpca.h' c:\users\brendans\documents\github\trinitycore\src \server\scripts\outdoorpvp\OutdoorPvPCA.h 164

Heres the part that it says is the error



07-22-2013, 03:01 AM
Can you show us the whole file code? Can't really work off of that. XD

07-22-2013, 03:07 AM
Whenever posting any sort of error message you will always want to include the code that produced the error.

07-22-2013, 03:12 AM
http://paste2.org/7tcU9pFD There sorry Should have posted that.Also paste bin is down :/

07-22-2013, 03:17 AM
Is that the entire script? Your error is reporting on line 164 and the code you posted only goes to 160.

Anyhow, at the end of your script add this line


07-22-2013, 03:21 AM
Well I removed some random like russian or somthing text thats why its cut down a few lines.and thanks i will try this :)

07-22-2013, 03:22 AM
Let me know how it goes :)

07-22-2013, 03:23 AM
Thanks so much!My fault.I had to copy over the script from a patch file and i saw that piece of code at the end.I thought it was for git so I deleted it.Thanks so much!

07-22-2013, 03:34 AM
Marking as solved! Sorry I couldn't answer it fast enough, but I actually was going to ask if you add #endif at the end of the script. :D