Ryder17z Topic Starter
Thanked: 2 Posts: 201
Computer: Specs Experience: Experienced OS: Windows XP

|
 |
« on: November 19, 2009, 08:50:20 PM » |
|
Is there any tool which can open files containing C++/Pawn code and intendent it correctly?
Very often I have to do it the manual way, which takes way too much time..
Example:
Bad Code:
OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmd, "/test", true) == 0) { if(IsPlayerConnected(playerid)) { // Blah if (PlayerInfo[playerid][pAdmin] >= 7) { SendClientMessage(playerid, COLOR_YELLOW, "Your an High-level administrator."); } else { SendClientMessage(playerid, COLOR_YELLOW, "Your not an administrator."); } } return 1; } return 0; } Good Code:
OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmd, "/test", true) == 0) { if(IsPlayerConnected(playerid)) { //Blah if (PlayerInfo[playerid][pAdmin] >= 7) { SendClientMessage(playerid, COLOR_YELLOW, "Your an High-level administrator."); } else { SendClientMessage(playerid, COLOR_YELLOW, "Your not an administrator."); } } return 1; } return 0; }
|