SA-MP Forums Archive
Whats wrong with the indentation here? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats wrong with the indentation here? (/showthread.php?tid=270261)



Whats wrong with the indentation here? - Shockey HD - 19.07.2011

Код:
dcmd_money500(playerid, params[])
{
	new
		id;
	if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /money500 <ID>");
	else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
	else
	{
		GivePlayerMoney(id,500.0);
		SendClientMessage(id,COLOR_GREEN,"You have received 500 Dollars");
 {
 return 1;
}
?


Re: Whats wrong with the indentation here? - Jay. - 19.07.2011

http://dracoblue.net/tidy/pawn/

pawn Код:
dcmd_money500(playerid, params[])
{
        new id;
        if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /money500 <ID>");
        else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
        else
        {
           GivePlayerMoney(id,500.0);
           SendClientMessage(id,COLOR_GREEN,"You have received 500 Dollars");
        {
        return 1;
}