How to add more cases
#1

How would i got about adding more cases for this, Like i want a case 3 for a server restart and i want it showing a message

pawn Код:
new pname[MAX_PLAYER_NAME], string[128 + MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  new plrIP[128];
  GetPlayerIp(playerid, plrIP, sizeof(plrIP));
  switch(reason)
  {
    case 0: format(string, sizeof(string), "%s has left the server - %s. (Crashed)", pname, plrIP);
    case 1: format(string, sizeof(string), "%s has left the server - %s. (Leaving)", pname, plrIP);
    case 2: format(string, sizeof(string), "%s has left the server - %s. (Kicked)", pname, plrIP);
  }
I wanna make it so when the server restarts it sets your last know location.
Reply


Messages In This Thread
How to add more cases - by ihatetn931 - 15.06.2010, 03:50
Re: How to add more cases - by Antonio [G-RP] - 15.06.2010, 04:01
Re: How to add more cases - by ihatetn931 - 15.06.2010, 04:04
Re: How to add more cases - by Grim_ - 15.06.2010, 04:23
Re: How to add more cases - by ihatetn931 - 15.06.2010, 04:33
Re: How to add more cases - by Grim_ - 15.06.2010, 04:34
Re: How to add more cases - by ihatetn931 - 15.06.2010, 04:37
Re: How to add more cases - by Grim_ - 15.06.2010, 04:40
Re: How to add more cases - by ihatetn931 - 15.06.2010, 06:17

Forum Jump:


Users browsing this thread: 1 Guest(s)