Closed seanny closed 6 years ago
This is likely an error with your code. Check the MySQL plugin log file for any errors.
I found these errors in the mysql log file, but this makes absolutely no sense at all, it does not do this on the other SELECT queries.
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)
[15:07:04] [plugins/mysql] cache_get_value_name_int: no active cache (./Source/Properties/House.pwn:880)```
I narrowed down the problem to this line: cache_get_value_int(i, "OwnerID", HouseInfo[i+1][HouseOwnerID]);
I do not understand why this is making the query crap out??????
Check if your UpdateHousePickup
function is sending unthreaded queries, as they will overwrite the result cache from the houses query.
UpdateHousePickup just creates 3D text labels and pickups, no SQL involved. I solved this anyway by setting the cache active at bottom of loop.
I'm having a problem where MySQL is only loading data from 1 row but it sees that there is 37 rows.
samp-server.exe:
Code: