Pawno Error.
#2

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    switch(reason)
    {
        case 0: format(string, sizeof(string), "%s Left. (Lost Connection)", pname);
        case 1: format(string, sizeof(string), "%s Left. (Leaving)", pname);
        case 2: format(string, sizeof(string), "%s Left. (Kicked)", pname);
    }
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}
Reply


Messages In This Thread
Pawno Error. - by maggot_100 - 10.04.2011, 12:23
Re: Pawno Error. - by xir - 10.04.2011, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)