/stats command
#1

I've made a simple stats command it all seems to work fine but kills,deaths wont add ?

Код:
CMD:stats(playerid, params[])
{
  if(connected[playerid] == true) return GameTextForPlayer(playerid, "~r~Spawn First", 5000, 5);
  new string[500],name[MAX_PLAYER_NAME], stats[1028];
  GetPlayerName(playerid, name, sizeof(name));
  format(string, sizeof(string), "{4286f4}Name{FFFFFF}: %s\n{4286f4}Admin Level{FFFFFF}: %i\n{4286f4}Score{FFFFFF}: %i\n{4286f4}Kills{FFFFFF}: %i\n{4286f4}Deaths{FFFFFF}: %i\n{4286f4}Points{FFFFFF}: %i",name, pInfo[playerid][Admin],  pInfo[playerid][Score], pInfo[playerid][Kills], pInfo[playerid][Deaths],  pInfo[playerid][Points]);
  format(stats, sizeof stats, "%s", string);
  ShowPlayerDialog(playerid, 55, DIALOG_STYLE_MSGBOX, "Stats",stats,"Ok","");
  return 1;
}
Reply


Messages In This Thread
/stats command - by ivndosos - 04.02.2018, 17:37
Re: /stats command - by jasperschellekens - 04.02.2018, 17:42
Re: /stats command - by ivndosos - 04.02.2018, 17:49
Re: /stats command - by jasperschellekens - 04.02.2018, 18:00
Re: /stats command - by ivndosos - 04.02.2018, 18:02
Re: /stats command - by jasperschellekens - 04.02.2018, 18:09
Re: /stats command - by ivndosos - 04.02.2018, 18:14
Re: /stats command - by solstice_ - 04.02.2018, 21:24
Re: /stats command - by ivndosos - 05.02.2018, 06:09
Re: /stats command - by Kane - 05.02.2018, 07:49

Forum Jump:


Users browsing this thread: 4 Guest(s)