Quote:
Originally Posted by pds2012
Try these
pawn Code:
new Query[512]; for(new i; i < MAX_HOUSES; i++) // Goes through all the slots, looking for the data { HouseCount = 0; format(Query,sizeof(Query),"SELECT * FROM houses WHERE Created = %d", i);//searching for the house id and load it mysql_query(Query); mysql_store_result(); while(mysql_fetch_row(Query)) { sscanf(Query,"e<p<|>s[32]ddddfffdds[128]s[128]d>",HInfo[i]); //i = MAX_HOUSES HouseCount++; } }
The problem is this HInfo[HouseCount]
|
Thanks for the reply

I tried it, but now it's just trying to load house 1 like, a hundred times :P. HouseCount has no defined size, and increases each the while loop loops, so I don't think that's the problem.