Extract Problem!
#1

Not extract information correctly form database!
Код 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;
}
DEBUG:
Код HTML:
printf("DEBUG: %d", pInfo[playerid][pFpunish]);
DEBUG: 1
pInfo[playerid][pFpunish] in database is 0, not 1.
Reply


Messages In This Thread
Extract Problem! - by norton2 - 03.10.2015, 08:21
Re: Extract Problem! - by norton2 - 03.10.2015, 12:41
Re: Extract Problem! - by x3378 - 03.10.2015, 12:58
Re: Extract Problem! - by norton2 - 03.10.2015, 12:59
Re: Extract Problem! - by Thomaske - 03.10.2015, 15:22
Re: Extract Problem! - by Lordzy - 03.10.2015, 15:35
Re: Extract Problem! - by norton2 - 03.10.2015, 15:44
Re: Extract Problem! - by Lordzy - 03.10.2015, 15:51
Re: Extract Problem! - by norton2 - 03.10.2015, 15:59
Re: Extract Problem! - by Vince - 03.10.2015, 16:06

Forum Jump:


Users browsing this thread: 2 Guest(s)