03.10.2015, 08:21
Not extract information correctly form database!
DEBUG:
DEBUG: 1
pInfo[playerid][pFpunish] in database is 0, not 1.
Код HTML:
mysql_format(MySQLCon, query, sizeof(query), "SELECT * FROM `players` WHERE `user` = '%e' LIMIT 1", GetName(playerid)); mysql_tquery(MySQLCon, query, "OnPlayerLogin", "i", playerid);
Код HTML:
forward OnPlayerLogin(playerid); public OnPlayerLogin(playerid) { // bla bla bla pInfo[playerid][pFpunish] = cache_get_field_content_int(0, "Fpunish"); return 1; }
Код HTML:
printf("DEBUG: %d", pInfo[playerid][pFpunish]);
pInfo[playerid][pFpunish] in database is 0, not 1.