SA-MP Forums Archive
Please Help Me!! - 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: Please Help Me!! (/showthread.php?tid=233193)



Wat ? - [FMJ]BlueFire - 01.03.2011

fixed


Re: Please Help Me!! - Mean - 01.03.2011

1. Your Streamer fails. It's for 0.3b, and you have 0.3c, download newer streamer.
2. Your code indentation is messed up:
pawn Код:
// Good indentation
CMD:abcd( playerid, params[ ] )
{
    SendClientMessage( playerid, 0xAAAAAA, "Abcd" );
    SendClientMessage( playerid, 0xAAAAAA, "Blah" );
    return 1;
}
pawn Код:
// Bad indentation
CMD:abcd( playerid, params[ ] )
{
  SendClientMessage( playerid, 0xAAAAAA, "Abcd" );
        SendClientMessage( playerid, 0xAAAAAA, "Blah" );
return 1;
}
Meaning your code isn't sorted well, use "TAB" key to indent it.

You can also put
pawn Код:
#pragma tabsize 0
on top of your script, to ignore the "Loose Indentation" warnings, and just don't show them, but I recommend to just fix the indentation.


Re: Please Help Me!! - [FMJ]BlueFire - 01.03.2011

k thx!