#pragmasize 0
#1

wtf does this acutally do
Reply
#2

It makes pawno ignore the identation.
Reply
#3

Quote:
Originally Posted by SAWC™
It makes pawno ignore the identation.
Then why is it bad?
Reply
#4

Quote:
Originally Posted by luigifan9
Quote:
Originally Posted by SAWC™
It makes pawno ignore the identation.
Then why is it bad?
It's not bad.. It's just you don't have to be lazy to use tab and sort your codes properly..
Reply
#5

Quote:
Originally Posted by SAWC™
It makes pawno ignore the identation.
Yea, or else you'll get crap like:

[code=Warnings From Pawno]C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(3623) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(4174) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(4994) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(5206) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(520 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(6199) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(6521) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(653 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(6554) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(6570) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(7194) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(7199) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(7212) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(7217) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(7932) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8054) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8306) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8316) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8354) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8575) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8580) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8676) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8682) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(8835) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(9781) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(9835) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(9844) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(9924) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10200) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10312) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10535) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10665) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10814) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10849) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10871) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10876) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10897) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10907) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10912) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10934) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10944) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10949) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10970) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10980) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(10985) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11006) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11016) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11021) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11042) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11052) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11057) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1107 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1108 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11093) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11114) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11124) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11129) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11152) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11162) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11167) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11191) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11201) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11206) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11229) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11239) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11244) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11266) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11276) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11281) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11304) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11331) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1138 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11650) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(11761) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13673) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13684) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13693) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13700) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13717) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13724) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13737) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(13773) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(14295) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(14819) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1484 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(15200) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(15446) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(15456) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(15534) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(15545) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1555 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(15644) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(15919) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16007) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16009) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16111) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16114) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16571) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16626) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1662 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16642) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(16769) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17054) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17567) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17600) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17604) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17631) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17661) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17784) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17796) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1781 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17833) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17855) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17871) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17893) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17909) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17931) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17946) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1796 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(17984) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18006) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18022) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18044) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1805 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18072) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18085) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(1809 : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18111) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18131) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18144) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18157) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18170) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18184) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(18542) : warning 217: loose indentation
C:\Users\Dustin\Desktop\Cops & Robbers\gamemodes\CNR.pwn(19200) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


135 Warnings.
[/code]
Reply
#6

Quote:
Originally Posted by luigifan9
Quote:
Originally Posted by SAWC™
It makes pawno ignore the identation.
Then why is it bad?
Because It's easier reading this:
pawn Код:
dcmd_kick(playerid, params[])
{
    if(!IsPlayerAdmin(playerid) && PlayerInfo[playerid][AdminLevel] < 2) return 0;
    if(!params[0])
    {
        SendClientMessage(playerid, COLOR_RED, "*** USAGE: ( /kick [playerid] [reason]");
        SendClientMessage(playerid, COLOR_RED, "*** Kicks a player");
        return 1;
    }
 
    new
        id,
        reason[128],
        idx = 0,
        st = 0;
   
    while(params[idx] != ' ')
    {
        reason[idx] = params[idx];
        idx++;
    }
    reason[idx] = EOS;
    id = strval(reason);
    reason[0] = EOS;
    while(params[idx] != EOS)
    {
        reason[st] = params[idx];
        st++;
        idx++;
    }
    reason[st] = EOS;
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "*** ERROR: Player not connected !");
 
    new name[MAX_PLAYER_NAME], string[128];
 
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    GetPlayerName(id, string, MAX_PLAYER_NAME);
    format(string, 128, "|= Administrator %s kicked %s. Reason: %s =|", name, string, reason[0] ? reason : "No reason");
    SendClientMessageToAll(COLOR_ADMIN, string);
    return 1;
}
then this
pawn Код:
dcmd_kick(playerid, params[])
{
if(!IsPlayerAdmin(playerid) && PlayerInfo[playerid][AdminLevel] < 2) return 0;
if(!params[0]){
SendClientMessage(playerid, COLOR_RED, "*** USAGE: ( /kick [playerid] [reason]");
SendClientMessage(playerid, COLOR_RED, "*** Kicks a player");
return 1;}
new id, reason[128], idx = 0, st = 0;
while(params[idx] != ' '){
reason[idx] = params[idx];
idx++;}
reason[idx] = EOS;
id = strval(reason);
reason[0] = EOS;
while(params[idx] != EOS){
reason[st] = params[idx];
st++;
idx++;}
reason[st] = EOS;
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "*** ERROR: Player not connected !");
new name[MAX_PLAYER_NAME], string[128];  
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
GetPlayerName(id, string, MAX_PLAYER_NAME);
format(string, 128, "|= Administrator %s kicked %s. Reason: %s =|", name, string, reason[0] ? reason : "No reason");
SendClientMessageToAll(COLOR_ADMIN, string);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)