21.05.2015, 18:00
Try this :
PHP код:
public loadMBs()
{
print("loading moneybags initialized");
for(new i = 0; i < cache_get_row_count(mysql); ++i)
{
cache_get_field_content(0, "mbloc", MBInfo[i][mbloc], mysql,128);
MBInfo[i][mbX] = cache_get_field_content_float(1, "mbX", mysql);
MBInfo[i][mbY] = cache_get_field_content_float(2, "mbY", mysql);
MBInfo[i][mbZ] = cache_get_field_content_float(3, "mbZ", mysql);
totalMoneyBags++;
}
printf("%d moneybags loaded!", totalMoneyBags);
mbTimer[1] = SetTimer("MoneyBag", 300000, true);
return 1;
}