Squirrel Script
- local result = mysql_query(mysqlHandler, "SELECT * FROM `player_items` WHERE `player_id` = " + getGUIDbyLogin(getPlayerName(pid)) + ";");
- if(result)
- {
- local row;
- while ((row = mysql_fetch_assoc(result)))
- {
- callClientFunc(pid, "giveItem", row["instance"], row["amount"]);
- }
-
- mysql_free_result(result);
- }