24.07.2015, 22:40
pawn Код:
forward LoadStuff();
public LoadStuff()
{
new rows = cache_num_rows();
for(new i; i < rows; i++)
{
id = cache_get_field_content_int(i, "ID");
cache_get_field_content(i, "Name", StuffInfo[id][sName], .max_len = MAX_STUFF_NAME);
StuffInfo[id][sType] = cache_get_field_content_int(i, "Type");
StuffInfo[id][sEconomyType] = cache_get_field_content_int(i, "EconomyType");
StuffInfo[id][sTax] = cache_get_field_content_int(i, "Tax");
StuffInfo[id][sVault] = cache_get_field_content_int(i, "Vault");
}
printf(" [Stuff System] Loaded %d stuff.", rows);
return 1;
}