BuzzerBeater Forums

BBAPI Support > Potential

Potential

Set priority
Show messages by
This Post:
00
141462.12 in reply to 141462.10
Date: 4/21/2010 11:49:08 AM
Overall Posts Rated:
3737
Thanks for that, that's the crucial datum to put the problem on urimate's side. Sorry, urimate.

This Post:
00
141462.13 in reply to 141462.11
Date: 4/21/2010 11:54:37 AM
Overall Posts Rated:
3737
Not so long ago XML also showed max game shape at 8, although it was actually 9. Same with season start xml showed 6, although it was 7. Perhaps it's the same with potential. Max is actually 11, but xml shows it at the top end of 10?


I've started a new thread on this to keep the two issues distinct: (141496.1)

This Post:
00
141462.14 in reply to 141462.12
Date: 4/21/2010 12:50:53 PM
Overall Posts Rated:
9999
Ok, I understand...but somebody should say where the problem is... :D

This Post:
00
141462.15 in reply to 141462.14
Date: 4/21/2010 1:49:56 PM
Overall Posts Rated:
3737
Ok, I understand...but somebody should say where the problem is...


Well, you've got a lot of help here already. You need to step up and do some more detailed debugging on your side to sort out what's wrong in (141462.3).

Here's another longshot, but in the code (or pseudocode) you posted, is your comparison of the potential actually numeric? You posted > '6' (in single quotes). 10 > 6, but is '10' > '6' in whatever you're coding in?

Last edited by Mod-oeuftete at 4/21/2010 1:50:18 PM

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.