format(query, sizeof(query), "SELECT * FROM `players` WHERE `name` = '%s'", playerName(playerid)); mysql_function_query(g_Handle, query, true, "LoadAcc", "d", playerid);
PlayerInfo[playerid][kSQLID] = cache_get_row_int(0, 0, g_Handle), PlayerInfo[playerid][kAdmin] = cache_get_row_int(0, 3, g_Handle), PlayerInfo[playerid][kBanned] = cache_get_row_int(0, 5, g_Handle), PlayerInfo[playerid][kLang] = cache_get_row_int(0, 6, g_Handle), PlayerInfo[playerid][kWarn] = cache_get_row_int(0, 7, g_Handle), PlayerInfo[playerid][kMoney] = cache_get_row_int(0, 9, g_Handle), PlayerInfo[playerid][kSkin] = cache_get_row_int(0, 10, g_Handle), PlayerInfo[playerid][kScore] = cache_get_row_int(0, 13, g_Handle); cache_get_row(0, 1, PlayerInfo[playerid][kName], g_Handle, 70); cache_get_row(0, 2, PlayerInfo[playerid][kPW], g_Handle, 130); cache_get_row(0, 14, PlayerInfo[playerid][kSalt], g_Handle, 31);
[16:23:33] 6 - SQLID - correct [16:23:33] 0 - ADMINLEVEL (in db 2014) [16:23:33] 0 - BANNED - correct [16:23:33] 0 - LANG - correct [16:23:33] 0 - WARNS - correct [16:23:33] 105 - MONEY (in db 15000) [16:23:33] 102 - SKIN - correct [16:23:33] 99 - SCORE (in db 123)
Then your error is somewhere else in your code, because everything here looks good.
Just replace this: g_Handle), With: g_Handle); Don't use a , |
I don't know the problem myself, although that isn't it. That's general Syntax. Instead of writing for example.
Dog = 1; Cat = 2; It just reads as one line like Dog = 1, Cat = 2; Both are correct and valid, don't change your syntax. Enters, or returns are acceptable between this "line" aswell. |
PlayerInfo[playerid][kScore] = cache_get_row_int(0, 13, g_Handle);
printf("%d - ADMIN_CACHE", cache_get_row_int(0, 3, g_Handle)); printf("%d - SKIN_CACHE", cache_get_row_int(0, 10, g_Handle)); printf("%d - SCORE_CACHE", cache_get_row_int(0, 13, g_Handle));
PlayerInfo[playerid][kSQLID] = cache_get_row_int(0, 0, g_Handle), PlayerInfo[playerid][kAdmin] = cache_get_row_int(0, 3, g_Handle), PlayerInfo[playerid][kBanned] = cache_get_row_int(0, 5, g_Handle), PlayerInfo[playerid][kLang] = cache_get_row_int(0, 6, g_Handle), PlayerInfo[playerid][kWarn] = cache_get_row_int(0, 7, g_Handle), PlayerInfo[playerid][kMoney] = cache_get_row_int(0, 9, g_Handle), PlayerInfo[playerid][kSkin] = cache_get_row_int(0, 10, g_Handle), PlayerInfo[playerid][kScore] = cache_get_row_int(0, 13, g_Handle); cache_get_row(0, 1, PlayerInfo[playerid][kName], g_Handle, 70); cache_get_row(0, 2, PlayerInfo[playerid][kPW], g_Handle, 130); cache_get_row(0, 14, PlayerInfo[playerid][kSalt], g_Handle, 31);