02.02.2011, 23:10
I've got no idea whats wrong. The SQL tables aren't null, and this code used to work. Any ideas?
pawn Код:
printf("Loading Ranks...");
mysql_query("SELECT * FROM `ranks`");
mysql_store_result();
while(mysql_fetch_row(resultline)==1)
{
printf("%s", resultline);
new id, rid, rname[24];
if(!sscanf(resultline, "p<|>dds[23]", id, rid, rname))
{
RankInfo[id][rid][rFactionID] = id;
RankInfo[id][rid][rRankID] = rid;
strmid(RankInfo[id][rid][rName], rname, 0, strlen(rname), 255);
}
else
{
print("Error: There was a problem parsing rank data! Moving to next result.");
}
}
mysql_free_result();