27.01.2014, 11:52
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:
becomes:
do the same for the rest.
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);
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);