[MySQL] tquery issue
#5

Quote:
Originally Posted by Kaperstone
View Post
You have data, you know how it looks like,
think logically how you can solve the problem, you're a scripter
Method 1:
PHP Code:
ClanDB[i][ClanID] = cache_get_field_content_int(ClanDB[i][ClanID], "clanid");
                
cache_get_field_content(ClanDB[i][ClanID], "clan_name"ClanDB[i][ClanName]);
                
ClanDB[i][ClanLevel] = cache_get_field_content_int(ClanDB[i][ClanID], "clan_level");
                
ClanDB[i][ClanEXP] = cache_get_field_content_int(ClanDB[i][ClanID], "clan_exp");
                
ClanDB[i][ClanMaxEXP] = cache_get_field_content_int(ClanDB[i][ClanID], "clan_max_exp");
                
ClanDB[i][ClanColor] = cache_get_field_content_int(ClanDB[i][ClanID], "clan_color");
format(strsizeof(str), "[%d] clanid: %d, exp: %d, max exp: %d",iClanDB[i][ClanID], ClanDB[i][ClanEXP], ClanDB[i][ClanMaxEXP]);
                
printf(str); 
PHP Code:
[0clanid1exp0max exp300
[1clanid1exp0max exp300 
Method 2:
PHP Code:
ClanDB[i][ClanID] = cache_get_field_content_int(i"clanid");
                
cache_get_field_content(i"clan_name"ClanDB[ClanDB[i][ClanID]][ClanName]);
                
ClanDB[ClanDB[i][ClanID]][ClanLevel] = cache_get_field_content_int(i"clan_level");
                
ClanDB[ClanDB[i][ClanID]][ClanEXP] = cache_get_field_content_int(i"clan_exp");
                
ClanDB[ClanDB[i][ClanID]][ClanMaxEXP] = cache_get_field_content_int(i"clan_max_exp");
                
ClanDB[ClanDB[i][ClanID]][ClanColor] = cache_get_field_content_int(i"clan_color");
                
format(strsizeof(str), "[%d] clanid: %d, exp: %d, max exp: %d",iClanDB[i][ClanID], ClanDB[i][ClanEXP], ClanDB[i][ClanMaxEXP]);
                
printf(str); 
PHP Code:
[0clanid1exp0max exp0
[1clanid7exp0max exp
i'd be more than happy if you can assist me, i'll try to make more changes meanwhile to try to solve
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: 4 Guest(s)