26.03.2019, 20:24
It's not loading repair ids into the game.
or calling the function
or calling the function
Code:
public OnGameModeInit() { for(new i = 0; i != sizeof(ARepairPickups); i++) ARepairPickups[i][PickupID] = -1; mysql_tquery(MySQL, "SELECT * FROM `repair_pickups`", "OnLoadRepairPickups"); }
Code:
forward OnLoadRepairPickups(playerid); public OnLoadRepairPickups() { new count; cache_get_row_count(count); // Get total rows for(new i; i < count; i++) { cache_get_value_name_int(i, "PickupID", ARepairPickups[i][PickupID]); cache_get_value_float(i, "pux",ARepairPickups[i][pux]); cache_get_value_float(i, "puy",ARepairPickups[i][puy]); cache_get_value_float(i, "puz",ARepairPickups[i][puz]); AddARepairPickups(ARepairPickups[i][pux],ARepairPickups[i][puy],ARepairPickups[i][puz]); print("Test"); } return 1; }