22.07.2017, 16:56
Quote:
You have data, you know how it looks like,
think logically how you can solve the problem, you're a scripter |
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(str, sizeof(str), "[%d] clanid: %d, exp: %d, max exp: %d",i, ClanDB[i][ClanID], ClanDB[i][ClanEXP], ClanDB[i][ClanMaxEXP]);
printf(str);
PHP Code:
[0] clanid: 1, exp: 0, max exp: 300
[1] clanid: 1, exp: 0, max exp: 300
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(str, sizeof(str), "[%d] clanid: %d, exp: %d, max exp: %d",i, ClanDB[i][ClanID], ClanDB[i][ClanEXP], ClanDB[i][ClanMaxEXP]);
printf(str);
PHP Code:
[0] clanid: 1, exp: 0, max exp: 0
[1] clanid: 7, exp: 0, max exp: 0