Not calling function?
#1

It's not loading repair ids into the game.
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;
}
Reply
#2

Show mysql.log
Reply
#3

It's now working, it was renamed to "repair_pickups" instead of "repair_system"
Reply
#4

cache_get_value_float

Shouldnt it be cache_get_value_name_float?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)