[MySQL] tquery issue
#1

solved but another issue popped, check my comment
code:
PHP Code:
stock LoadClans()
{
    
mysql_tquery(sql"SELECT * FROM `clans`""tLoadClans");
    return 
1;
}
forward tLoadClans();
public 
tLoadClans()
{
    new 
rowsfields;
    
cache_get_data(rowsfields);
    if(
rows)
    {
        for(new 
0rowsi++)
        {
            
ClanDB[i][ClanID] = cache_get_field_content_int(0"clanid");
            
cache_get_field_content(0"clan_name"ClanDB[i][ClanName]);
            
ClanDB[i][ClanLevel] = cache_get_field_content_int(0"clan_level");
            
ClanDB[i][ClanEXP] = cache_get_field_content_int(0"clan_exp");
            
ClanDB[i][ClanMaxEXP] = cache_get_field_content_int(0"clan_max_exp");
            
ClanDB[i][ClanColor] = cache_get_field_content_int(0"clan_color");
            new 
str[32];
            
format(strsizeof(str), "ca %d"ClanDB[i][ClanMaxEXP]);
            
printf(str);
        }
    }

batch:
PHP Code:
ca 0
ca 0 
MySQL:
Reply


Messages In This Thread
[MySQL] tquery issue - by Lirbo - 22.07.2017, 15:14
Re: [MySQL] tquery issue - by Jefff - 22.07.2017, 15:18
Re: [MySQL] tquery issue - by Lirbo - 22.07.2017, 16:10
Re: [MySQL] tquery issue - by Kaperstone - 22.07.2017, 16:29
Re: [MySQL] tquery issue - by Lirbo - 22.07.2017, 16:56
Re: [MySQL] tquery issue - by skuller12 - 22.07.2017, 17:10
Re: [MySQL] tquery issue - by Kaperstone - 22.07.2017, 17:20
Re: [MySQL] tquery issue - by Lirbo - 22.07.2017, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)