save data to string
#8

I asked for the error code and line. Anyways, the line is:
pawn Код:
if(Update_data > CP_VERSION)
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.
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)