save data to string
#10

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


Messages In This Thread
save data to string - by ic3cr3am - 22.03.2014, 12:07
Re: save data to string - by Konstantinos - 22.03.2014, 12:12
Re: save data to string - by ic3cr3am - 22.03.2014, 12:22
Re: save data to string - by Konstantinos - 22.03.2014, 12:23
Re: save data to string - by ic3cr3am - 22.03.2014, 12:24
Re: save data to string - by Konstantinos - 22.03.2014, 12:29
Re: save data to string - by ic3cr3am - 22.03.2014, 12:31
Re: save data to string - by Konstantinos - 22.03.2014, 12:36
Re: save data to string - by ic3cr3am - 22.03.2014, 12:40
Re: save data to string - by Konstantinos - 22.03.2014, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)