mysql not loading
#2

Admin field is index 4, not 5. In phpMyAdmin may start from 1 but in Pawn starts from 0. Subtract 1 in each field. For example:
pawn Код:
PlayerInfo[playerid][Admin] = cache_get_row_int(0, 5);
    PlayerInfo[playerid][Deaths] = cache_get_row_int(0, 6);
    PlayerInfo[playerid][Nopm] = cache_get_row_int(0, 7);
    PlayerInfo[playerid][Muted] = cache_get_row_int(0, 8);
becomes:
pawn Код:
PlayerInfo[playerid][Admin] = cache_get_row_int(0, 4);
    PlayerInfo[playerid][Deaths] = cache_get_row_int(0, 5);
    PlayerInfo[playerid][Nopm] = cache_get_row_int(0, 6);
    PlayerInfo[playerid][Muted] = cache_get_row_int(0, 7);
do the same for the rest.
Reply


Messages In This Thread
mysql not loading - by Face9000 - 27.01.2014, 11:46
Re: mysql not loading - by Konstantinos - 27.01.2014, 11:52
Re: mysql not loading - by CoaPsyFactor - 27.01.2014, 11:54
Re: mysql not loading - by Misiur - 27.01.2014, 11:57
Re: mysql not loading - by Face9000 - 27.01.2014, 11:58
Re: mysql not loading - by Misiur - 27.01.2014, 12:03
Re: mysql not loading - by Face9000 - 27.01.2014, 12:07
Re: mysql not loading - by CoaPsyFactor - 27.01.2014, 12:28
Re: mysql not loading - by Misiur - 27.01.2014, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)