22.03.2014, 12:36
I asked for the error code and line. Anyways, the line is:
Update_data is string and it uses indexes. You try to compare it like an integer without an index too which is incorrect.
You can compare it like string (strcmp) and send a message that the version does not match the latest one which is the simpler way.
If you want to check if the greater version, then again it depends on the version. How is it supposed to be? So I can tell you how to compare it.
PS: You need to use format to pass the version in the string.
pawn Код:
if(Update_data > CP_VERSION)
You can compare it like string (strcmp) and send a message that the version does not match the latest one which is the simpler way.
If you want to check if the greater version, then again it depends on the version. How is it supposed to be? So I can tell you how to compare it.
PS: You need to use format to pass the version in the string.