08.02.2016, 20:53
pawn Код:
public CheckCharges(playerid)
{
new rows = cache_get_row_count();
if(rows == 0) SetPVarString(playerid, "mdcreturn", "No charges found...");
else
{
new list[128], charges[520];
for(new i = 0; i < rows; i++)
{
cache_get_field_content(i, "Reason", list);
format(charges, sizeof(charges), "%s%s ", charges, list);
}
print(charges);
SetPVarString(playerid, "mdcreturn", charges);
}
return 1;
}