18.05.2012, 20:37
No need for mysql_store_result. Since you set the third parameter (cache) to true, we will use only the cache_* functions inside OnPlayerLogin.
Yet there's another thing you need to do: pass the playerid to OnPlayerLogin.
Then you need to know the field index of field 'Score'. Then use cache_get_row.
Yet there's another thing you need to do: pass the playerid to OnPlayerLogin.
pawn Code:
mysql_function_query(1, "SELECT * FROM players WHERE Name = 'MP2'", true, "OnPlayerLogin", "i", playerid);