forward OnStatsGet(playerid); public OnStatsGet(playerid) { new name[MAX_PLAYER_NAME], amount, string[1028]; for(new i, j = cache_num_rows(); i < j; i++) { cache_get_value_name(i, "name", name); cache_get_value_int(i, "money", amount); format(string, sizeof string, "%s\n%s\t$%i", string, name, amount); } ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]); //... return 1; }