SA-MP Forums Archive
26 errors! I must be BLIND - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 26 errors! I must be BLIND (/showthread.php?tid=392490)



26 errors! I must be BLIND - goviscrap - 14.11.2012

Im getting 26 ERROR's And i know its probably a "Bracket" problem but i cant see it!!! :/

Код:
if(strcmp(cmd, "/robbank", true) == 0)//Alexander
	{
	    if(IsPlayerConnected(playerid))
	    {
	    	if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1439.4030,-986.7344,14.2183))//Change those X,Y,Z
	        {
	        	if(Ranare[playerid] == 1)
	        	{
		            SendClientMessage(playerid, COLOR_LIGHTBLUE, "_________________________________________________________________");
		            SendClientMessage(playerid, COLOR_WHITE, " 		        You are now robbing the Bank of Los Santos.            ");
		            SendClientMessage(playerid, COLOR_WHITE, "      	     You are loading your money into your bag.       	   ");
		            SendClientMessage(playerid, COLOR_LIGHTBLUE, "_________________________________________________________________");
					SendClientMessage(playerid, COLOR_RED, "[HINT]   You need to stay here for around 5 Minutes or you will fail.  ");
					SendClientMessage(playerid, COLOR_LIGHTBLUE, "_________________________________________________________________");
					SetPlayerWantedLevel(playerid, 6); return SendClientMessage(playerid, COLOR_YELLOW, " You Recieved Wanted Level 6!");
					SendClientMessage(playerid, COLOR_LIGHTBLUE, "_________________________________________________________________");
					return 1;
				}
    			if(alreadyrobbed[playerid] == 1)
	        	{
             		SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
	            	return 1;
		}
	}



Re: 26 errors! I must be BLIND - Plovix - 14.11.2012

PHP код:
if(strcmp(cmd"/robbank"true) == 0)//Alexander
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(!
IsPlayerInRangeOfPoint(playerid5.01439.4030,-986.7344,14.2183))//Change those X,Y,Z
            
{
                if(
Ranare[playerid] == 1)
                {
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"_________________________________________________________________");
                    
SendClientMessage(playeridCOLOR_WHITE"                 You are now robbing the Bank of Los Santos.            ");
                    
SendClientMessage(playeridCOLOR_WHITE"               You are loading your money into your bag.              ");
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"_________________________________________________________________");
                    
SendClientMessage(playeridCOLOR_RED"[HINT]   You need to stay here for around 5 Minutes or you will fail.  ");
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"_________________________________________________________________");
                    
SetPlayerWantedLevel(playerid6); return SendClientMessage(playeridCOLOR_YELLOW" You Recieved Wanted Level 6!");
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"_________________________________________________________________");
                    return 
1;
                }
                if(
alreadyrobbed[playerid] == 1)
                {
                     
SendClientMessage(playeridCOLOR_WHITE"You already robbed the bank! Wait 1 hour.");
                    return 
1;
                     }
        }
    } 



Re: 26 errors! I must be BLIND - goviscrap - 14.11.2012

LOL thanks!


Re: 26 errors! I must be BLIND - goviscrap - 14.11.2012

Still getting those errors;/


Re: 26 errors! I must be BLIND - wups - 14.11.2012

I can't see ending } there, also
pawn Код:
SetPlayerWantedLevel(playerid, 6); return SendClientMessage(playerid, COLOR_YELLOW, " You Recieved Wanted Level 6!");
You don't need "return" here.


Re: 26 errors! I must be BLIND - goviscrap - 14.11.2012

Thanks Mate!