Houses Load
#4

You delete the result before using cache functions. Place:
pawn Код:
cache_delete(result);
at the end (after the loop).

Also I said in your previous thread that if you want to count to use COUNT(*) but selecting all data is different ("SELECT * FROM houses").

You need to loop until rows returned (cache_get_row_count) and not until MAX_HOUSES.

In these:
pawn Код:
cache_get_field_content_int(0, ...
cache_get_field_content_float(0, ...
cache_get_field_content(0, ...
Replace "0" with "x".

Last in cache_get_field_content and enum-array, you need to specify the length:
pawn Код:
cache_get_field_content(x, "owner", HouseInfo[x][owner], 1, MAX_PLAYER_NAME);
and replace in your enum with:
pawn Код:
owner[MAX_PLAYER_NAME],
Reply


Messages In This Thread
Houses Load - by nezo2001 - 12.06.2015, 22:02
Re: Houses Load - by nezo2001 - 13.06.2015, 00:19
Re: Houses Load - by nezo2001 - 13.06.2015, 07:40
Re: Houses Load - by Konstantinos - 13.06.2015, 09:46
Re: Houses Load - by nezo2001 - 13.06.2015, 16:52
Re: Houses Load - by Konstantinos - 13.06.2015, 17:05
Re: Houses Load - by nezo2001 - 14.06.2015, 11:08
Re: Houses Load - by Konstantinos - 14.06.2015, 11:15
Re: Houses Load - by nezo2001 - 14.06.2015, 11:23

Forum Jump:


Users browsing this thread: 1 Guest(s)