Loose identitation
#1

Код:
CMD:b(playerid,params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1,""chat" /b [OOC chat]");

    new string[128];

    if(pInfo[playerid][pAdminDuty] == 1)
	    {
            format(string, sizeof(string), "((Administrator %s spune:  %s ))", PlayerName(playerid), params);
			ProxDetector(20.0, playerid, string, COLOR_LIGHTBLUE);
			return 1;
		}
    if(pInfo[playerid][pHelperDuty] == 1)
	    {
            format(string, sizeof(string), "((Helper %s spune:  %s ))", PlayerName(playerid), params);
			ProxDetector(20.0, playerid, string, COLOR_LIGHTBLUE);
			return 1;
		}
    if(pInfo[playerid][IsPlayerMuted] == 1)
        {
 			SendClientMessage(playerid,-1,"*"COL_RED" Nu poti vorbi cat timp ai mute ! ");
		}
            format(string, sizeof(string), "(( %s spune:  %s ))", PlayerName(playerid), params);
            ProxDetector(20.0, playerid, string, COLOR_WHITE);
            return 1;
}
I can't find the damn line.

I have a clue that i have too many return 1's. But not sure.


But everything looks good aligned.
Reply


Messages In This Thread
Loose identitation - by Zeus666 - 13.07.2016, 20:21
Re: Loose identitation - by WhiteGhost - 13.07.2016, 20:26
Re: Loose identitation - by Zeus666 - 13.07.2016, 20:29
Re: Loose identitation - by Untonyst - 13.07.2016, 20:29
Re: Loose identitation - by Zeus666 - 13.07.2016, 20:31

Forum Jump:


Users browsing this thread: 2 Guest(s)