weird problem with this "warning loose indentatiion
#1

Код:
CMD:arules(playerid,params[])
{
	if(CheckGMX(playerid)) return 1;
	return cmd_adminrules(playerid, params);
}

CMD:adminrules(playerid, params[])
{
	
	if(PlayerInfo[playerid][pAdmin] == 0) 
		return SendClientMessage(playerid, COLOR_GRAD1, "You are not Admin to use this command");
	if(PlayerInfo[playerid][pAdmin] >= 1) 
		SendClientMessage(playerid,COLOR_NEWS, "====================Admin Rules===================");
		SendClientMessage(playerid, COLOR_WHITE, "1. No Spamming in to admin chat");
		SendClientMessage(playerid, COLOR_WHITE, "2. No Abusing of Admin Power");
		SendClientMessage(playerid, COLOR_WHITE, "3. No Asking Promotions for Admin Ranks");
		SendClientMessage(playerid, COLOR_WHITE, "4. Always ask the higher admin if you will going to change player stat,etc");
		SendClientMessage(playerid, COLOR_WHITE, "5. You need to turn off your hacks if you are going off duty");
		SendClientMessage(playerid, COLOR_WHITE, "6. You are not allowed to share your hack to player or else be permanently BANNED");
		SendClientMessage(playerid, COLOR_REALRED, "NOTE: IF you will going to violate these rules. You wil be having your consequences!");
		SendClientMessage(playerid, COLOR_NEWS, "================================================");
		return 1;
}
Код:
C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(36006) : warning 217: loose indentation
Код:
36006: SendClientMessage(playerid, COLOR_WHITE, "1. No Spamming in to admin chat");
Reply
#2

pawn Код:
CMD:arules(playerid,params[])
{
    if(CheckGMX(playerid)) return 1;
    return cmd_adminrules(playerid, params);
}

CMD:adminrules(playerid, params[])
{
   
    if(PlayerInfo[playerid][pAdmin] == 0)
        return SendClientMessage(playerid, COLOR_GRAD1, "You are not Admin to use this command");
    if(PlayerInfo[playerid][pAdmin] >= 1)
        SendClientMessage(playerid,COLOR_NEWS, "====================Admin Rules===================");
    SendClientMessage(playerid, COLOR_WHITE, "1. No Spamming in to admin chat");
    SendClientMessage(playerid, COLOR_WHITE, "2. No Abusing of Admin Power");
    SendClientMessage(playerid, COLOR_WHITE, "3. No Asking Promotions for Admin Ranks");
    SendClientMessage(playerid, COLOR_WHITE, "4. Always ask the higher admin if you will going to change player stat,etc");
    SendClientMessage(playerid, COLOR_WHITE, "5. You need to turn off your hacks if you are going off duty");
    SendClientMessage(playerid, COLOR_WHITE, "6. You are not allowed to share your hack to player or else be permanently BANNED");
    SendClientMessage(playerid, COLOR_REALRED, "NOTE: IF you will going to violate these rules. You wil be having your consequences!");
    SendClientMessage(playerid, COLOR_NEWS, "================================================");
    return 1;
}
Use www.codegenerators.pl or TAB
Reply
#3

try this
pawn Код:
CMD:adminrules(playerid, params[])
{
   if(PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, COLOR_GRAD1, "Only level 1+ Admin to use this command");
   SendClientMessage(playerid,COLOR_NEWS, "====================Admin Rules===================");
   SendClientMessage(playerid, COLOR_WHITE, "1. No Spamming in to admin chat");
   SendClientMessage(playerid, COLOR_WHITE, "2. No Abusing of Admin Power");
   SendClientMessage(playerid, COLOR_WHITE, "3. No Asking Promotions for Admin Ranks");
   SendClientMessage(playerid, COLOR_WHITE, "4. Always ask the higher admin if you will going to change player stat,etc");
   SendClientMessage(playerid, COLOR_WHITE, "5. You need to turn off your hacks if you are going off duty");
   SendClientMessage(playerid, COLOR_WHITE, "6. You are not allowed to share your hack to player or else be permanently BANNED");
   SendClientMessage(playerid, COLOR_REALRED, "NOTE: IF you will going to violate these rules. You wil be having your consequences!");
   SendClientMessage(playerid, COLOR_NEWS, "================================================");
   return 1;
}
Reply
#4

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
pawn Код:
CMD:arules(playerid,params[])
{
    if(CheckGMX(playerid)) return 1;
    return cmd_adminrules(playerid, params);
}

CMD:adminrules(playerid, params[])
{
   
    if(PlayerInfo[playerid][pAdmin] == 0)
        return SendClientMessage(playerid, COLOR_GRAD1, "You are not Admin to use this command");
    if(PlayerInfo[playerid][pAdmin] >= 1)
        SendClientMessage(playerid,COLOR_NEWS, "====================Admin Rules===================");
    SendClientMessage(playerid, COLOR_WHITE, "1. No Spamming in to admin chat");
    SendClientMessage(playerid, COLOR_WHITE, "2. No Abusing of Admin Power");
    SendClientMessage(playerid, COLOR_WHITE, "3. No Asking Promotions for Admin Ranks");
    SendClientMessage(playerid, COLOR_WHITE, "4. Always ask the higher admin if you will going to change player stat,etc");
    SendClientMessage(playerid, COLOR_WHITE, "5. You need to turn off your hacks if you are going off duty");
    SendClientMessage(playerid, COLOR_WHITE, "6. You are not allowed to share your hack to player or else be permanently BANNED");
    SendClientMessage(playerid, COLOR_REALRED, "NOTE: IF you will going to violate these rules. You wil be having your consequences!");
    SendClientMessage(playerid, COLOR_NEWS, "================================================");
    return 1;
}
Use www.codegenerators.pl or TAB
OMG THANK YOU
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)