Facebook
From Zyzu, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 220
  1. forward OnStatsGet(playerid);
  2. public OnStatsGet(playerid)
  3. {
  4.         new name[MAX_PLAYER_NAME], amount, string[1028];
  5.         for(new i, j = cache_num_rows(); i < j; i++)
  6.         {
  7.                 cache_get_value_name(i, "name", name);
  8.                 cache_get_value_int(i, "money", amount);
  9.                 format(string, sizeof string, "%s\n%s\t$%i", string, name, amount);
  10.         }
  11.         ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
  12.         //...
  13.         return 1;
  14. }