[SOLVED] SAMP Reason
#1

I've got the following error in my leave message thing...

ERROR:
Код:
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(342) : error 017: undefined symbol "reason"
CODE:
Код:
public OnPlayerDisconnect(playerid)
{
  TextDrawHideForPlayer(playerid,TextWebsite);
	TextDrawHideForPlayer(playerid,TextName);
	
 	new pName[MAX_PLAYER_NAME], string[56];
  GetPlayerName(playerid, pName, sizeof(pName));
  switch(reason)
  {
    case 0: format(string, sizeof(string), ">> %s has left World War (Lost Connection)", pName);
    case 1: format(string, sizeof(string), ">> %s has left World War (Leaving)", pName);
    case 2: format(string, sizeof(string), ">> %s has left World War (Kicked)", pName);
  }
  SendClientMessageToAll(COLOR_ORANGE, string);
  
	return 1;
}
Please Help
Reply


Messages In This Thread
[SOLVED] SAMP Reason - by Nameless303 - 03.11.2009, 01:56
Re: [HELP] SAMP Reason - by KevKo95 - 03.11.2009, 02:08
Re: [HELP] SAMP Reason - by Ibanez - 03.11.2009, 02:10
Re: [HELP] SAMP Reason - by Nameless303 - 03.11.2009, 02:13

Forum Jump:


Users browsing this thread: 3 Guest(s)