Problem with row/field IDs when using R8 r34
#6

Try executing that query through phpMyAdmin and tell us whether it executed successfully or not.

However, I can't seem to find anything wrong (except the row I told you).

It should be:
pawn Код:
sInfo[statsBankMoney] = cache_get_row_int(0, 0);
sInfo[statsServerUp]  = cache_get_row_int(0, 1);
sInfo[statsAccounts]  = cache_get_row_int(0, 2);
sInfo[statsConnects]  = cache_get_row_int(0, 3);
sInfo[statsKills]     = cache_get_row_int(0, 4);
sInfo[statsDeaths]    = cache_get_row_int(0, 5);
By the way, what about ID? If it is always 1, then you actually don't need it and you can use "SELECT * FROM `statistics`".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)