MySQL R7 problem
#3

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
Those are all supposed to be integers, you might be saving or loading them as strings.
In database they are integers.
Load :
pawn Код:
cache_get_field_content(0, "Vip", temp), PlayerData[playerid][pVip] = strval(temp);
    cache_get_field_content(0, "TKicked", temp), PlayerData[playerid][pTKicked] = strval(temp);
    cache_get_field_content(0, "TKickeda", temp), PlayerData[playerid][pTKickeda] = strval(temp);
I don't have save because i don't need to.
Also the callback is called by this :

pawn Код:
format(query, sizeof(query), "SELECT * FROM `users` WHERE `id` = %d", PlayerData[playerid][pSQLid]);
    mysql_function_query(g_Handle, query, true, "OnAccountLoad", "d", playerid);
That d should be for all fields that i load .. ?
Reply


Messages In This Thread
MySQL R7 problem - by ADY26 - 29.11.2012, 14:16
Re: MySQL R7 problem - by SuperViper - 29.11.2012, 14:18
Re: MySQL R7 problem - by ADY26 - 29.11.2012, 14:21

Forum Jump:


Users browsing this thread: 1 Guest(s)