Quick question
#7

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new
        string[64],
        name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: // crashed
        {
                  // save stuff here and etc.
        }
        case 1: // disconnected
        {
             // stuff here
        }
        case 2: // kicked or banned
        {
             // stuff
        }
    }
    return 1;
}
You had an unneeded bracket.
Reply


Messages In This Thread
Quick question - by Anthonyx3' - 29.12.2010, 02:09
Re: Quick question - by _rAped - 29.12.2010, 03:21
Re: Quick question - by Anthonyx3' - 29.12.2010, 04:10
Re: Quick question - by Marricio - 29.12.2010, 04:20
Re: Quick question - by Anthonyx3' - 29.12.2010, 04:32
Re: Quick question - by Anthonyx3' - 29.12.2010, 18:54
Re: Quick question - by Mean - 29.12.2010, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)