Need help with indentations on Pawno
#1

Is there like an auto-fixer or something that could change this (as an example):
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;


}
To something with NO indentation errors. I really need help, someone fixed my script on pastebin, but now since i got my one with errors fixed off of pastebin, it has a lot of indentation errors. Any help here?
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)