• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Little c++ error need some help

Status
Not open for further replies.

brh11

Respected Member
Hey guys.Im trying to get this c++ script to work.Heres the error
Code:
Error	1	error C1070: mismatched #if/#endif pair in file 'c:\users\brendans\documents\github\trinitycore\src\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
Code:
#ifndef OUTDOOR_PVP_CA_

Thanks!
 

Parranoia

Insane Member
Whenever posting any sort of error message you will always want to include the code that produced the error.
 

Parranoia

Insane Member
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
Code:
#endif
 

brh11

Respected Member
Well I removed some random like russian or somthing text thats why its cut down a few lines.and thanks i will try this :)
 

brh11

Respected Member
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!
 

Tommy

Founder
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
 
Status
Not open for further replies.
Top