Need help with indentations on Pawno
#3

pawn Код:
public OnPlayerDisconnect(playerid, reason)       //This is From my Script Simple Join and Leave Messages

{

    new name[24];

    GetPlayerName(playerid, name, sizeof name);

    new string[128];

    switch(reason) {

        case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", name);

        case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", name);

        case 2: format(string, sizeof(string), "%s has left the server. (Kicked/Banned)", name);

    }

    SendClientMessageToAll(0x880088FF, string);

    return 1;

}
Use, http://dracoblue.net/tidy/pawn/ it's pretty useful.
Reply


Messages In This Thread
Need help with indentations on Pawno - by stormchaser206 - 22.03.2012, 20:23
Re: Need help with indentations on Pawno - by Skribblez - 22.03.2012, 20:34
Re: Need help with indentations on Pawno - by Kitten - 22.03.2012, 20:35
Re: Need help with indentations on Pawno - by Skribblez - 22.03.2012, 20:41
Re: Need help with indentations on Pawno - by stormchaser206 - 22.03.2012, 20:45
Re: Need help with indentations on Pawno - by Skribblez - 22.03.2012, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)