22.03.2014, 12:45
Comparing the strings (equal or not equal):
Assuming CP_VERSION is defined as:
and it returns a version as x.y (x and y are values between 0 and 9).
pawn Код:
if (strcmp(Update_data, CP_VERSION))
{
// versions do not match
}
pawn Код:
#define CP_VERSION "1.0"