BuzzerBeater Forums

BBAPI Support > Potential

Potential

Set priority
Show messages by
This Post:
00
141462.16 in reply to 141462.15
Date: 4/21/2010 2:17:08 PM
Overall Posts Rated:
9999
It is PHP, and yes, '10' > '6' gives true (it works with haal of famer potential), that's why I thought that all-time great is '10+' or something like that, because '10+' > '6' gives false.

And as I said, this works fine with most of the players except for the players with all-time great potential....

This is a function, which checks that the player is good enough for the hungarian U21 NT or not. It returns with true, if he is or false, if not. It is qiuet simple, only checks his age, salary and potential. Lot is users in Hungary used it in the last week, without any problem (or they don't alert me, if there was any problem) until today, when one of them wrote, that it said his player is not good for the NT, but it is not true (and this user has right). I checked the code and find, that under his age, salary....etc. he should be good enough...


This Post:
00
141462.17 in reply to 141462.16
Date: 4/21/2010 2:19:37 PM
Overall Posts Rated:
3737
It is PHP, and yes, '10' > '6' gives true (it works with haal of famer potential), that's why I thought that all-time great is '10+' or something like that, because '10+' > '6' gives false.


Well, we've established that the XML has '10' in this case. So something else must be wrong. Good luck in your debugging of the issue.

This Post:
00
141462.18 in reply to 141462.17
Date: 4/21/2010 2:23:49 PM
Overall Posts Rated:
9999
That' all right, I wrote the user, to try update again, I rewote the files on the server, it is possible, that it was out-of-date, or an older version was cached....

Anyway, thanks for everything.