Help reconfigure this code
#4

Still get those errors

Код:
    if(strcmp(cmd, "/newbie", true) == 0 || strcmp(cmd, "/n", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            }    
	            return SendClientMessage( playerid, WHITE, "You haven`t logged in yet." );
            {
            if(PlayerInfo[playerid][pTut] == 0)
            } 
		        return Kick( playerid );
            {
            if((nonewbie) && PlayerInfo[playerid][pAdmin] < 3)
            }
     	        return SendClientMessage( playerid, COLOR_GREY, "The Newbie channel has been disabled by an Admin !" );
            {
            if(PlayerInfo[playerid][pNewbieMuted] == 1)
            }
     	        return SendClientMessage(playerid, COLOR_GREY, "You are banned from speaking in that channel !" );
            {
            if( UseNewbieTimer[playerid] == true )
            return SendClientMessage(playerid,COLOR_GREY,"You must wait 50 seconds before speaking in that channel !" );
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[96];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
		    }
                return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/n)ewbie [newbie chat]");
            }
            if(PlayerInfo[playerid][pLevel] > 1 && PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 0) format(string, sizeof(string), "** Player %s: %s", sendername, result);
            else if(PlayerInfo[playerid][pAdmin] >= 2) format(string, sizeof(string), "** Admin %s: %s", sendername, result);
            else if(PlayerInfo[playerid][pHelper] >= 2) format(string, sizeof(string), "** Head Helper %s: %s", sendername, result);
            else if(PlayerInfo[playerid][pDonateRank] >= 1) format(string, sizeof(string), "** VIP ** %s: %s", sendername, result);
            else if(PlayerInfo[playerid][pHelper] == 1) format(string, sizeof(string), "** Helper %s: %s", sendername, result);
            else format(string, sizeof(string), "** Newbie %s: %s", sendername, result);
            OOCNewbie( NEWBIE_COLOR, string );
            
                if(PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 1)
		{
                    UseNewbieTimer[playerid] = true; SetTimerEx("UseNewbie",50*1000,0,"i",playerid); }
                }
        }
    }
if(strcmp(cmd, "/newbie", true) == 0 || strcmp(cmd, "/n", true) == 0)
{

{ the top bracket only seems to go down to }
return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/n)ewbie [newbie chat]");
}

I still get the same 26 errors.
Tested using notepad ++
Reply


Messages In This Thread
Help reconfigure this code - by ConsoleX - 19.03.2011, 16:38
Re: Help reconfigure this code - by Stigg - 19.03.2011, 16:39
Re: Help reconfigure this code - by jamesbond007 - 19.03.2011, 16:42
Re: Help reconfigure this code - by ConsoleX - 19.03.2011, 17:31
Re: Help reconfigure this code - by ConsoleX - 19.03.2011, 23:39
Re: Help reconfigure this code - by Fj0rtizFredde - 19.03.2011, 23:47
Re: Help reconfigure this code - by ConsoleX - 20.03.2011, 02:15
Re: Help reconfigure this code - by antonio112 - 20.03.2011, 02:23
Re: Help reconfigure this code - by ConsoleX - 20.03.2011, 02:46
Re: Help reconfigure this code - by antonio112 - 20.03.2011, 03:06

Forum Jump:


Users browsing this thread: 1 Guest(s)