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
#2

Here.

Код:
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;
}
Reply
#3

Still gives error on the same line (red bolded)
Reply
#4

PHP код:
CMD:b(playerid,params[]) 

    if(
isnull(params))  
        return 
SendClientMessage(playerid, -1""chat" /b [OOC chat]"); 
    new 
string[128]; 
    if(
pInfo[playerid][pAdminDuty] == 1
    { 
        
format(stringsizeof(string), "((Administrator %s spune:  %s ))"PlayerName(playerid), params); 
        
ProxDetector(20.0playeridstringCOLOR_LIGHTBLUE); 
        return 
1
    } 
    if(
pInfo[playerid][pHelperDuty] == 1
    { 
        
format(stringsizeof(string), "((Helper %s spune:  %s ))"PlayerName(playerid), params); 
        
ProxDetector(20.0playeridstringCOLOR_LIGHTBLUE); 
        return 
1
    } 
    if(
pInfo[playerid][IsPlayerMuted] == 1
    { 
        
SendClientMessage(playerid,-1,"*"COL_RED" Nu poti vorbi cat timp ai mute ! "); 
    } 
    
format(stringsizeof(string), "(( %s spune:  %s ))"PlayerName(playerid), params); 
    
ProxDetector(20.0playeridstringCOLOR_WHITE); 
    return 
1

Reply
#5

+1 untonsty. it works. thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)