SA-MP Forums Archive
Why do i get 26 ERRORS?! - 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: Why do i get 26 ERRORS?! (/showthread.php?tid=392351)



Why do i get 26 ERRORS?! - goviscrap - 13.11.2012

When im using this Script i get 26 Errors! and none of them are linked to these lines?!

Код:
if(strcmp(cmdtext, "/BreakVault", true) == 0)
	{
		if(IsPlayerInRangeOfPoint(playerid,9,1453.69995117,-986.90002441,14.89999962))
		{ //Bank Vault
			if(!(PlayerInfo[playerid][pMember] == 0)) return SendClientMessage(playerid,COLOR_GREY," You are not a BankRobber or Bank Director");
				{
 				if(BankVault==0)
    			{
     				BankVault = 1;
       				MoveObject(BankVaultDoor, 1453.69995117,-985.00000000,14.89999962, 0.5);
       			}
	    		else if(BankVault==1)
		   		{
		       		BankVault = 0; // 0 = stдngd dцrr! 0an ska дven vara "InRangeOfPoint"
		       		MoveObject(BankVaultDoor, 1453.69995117,-986.90002441,14.89999962, 0.5);
			return 1;
			}
		return 1;
	}



Re: Why do i get 26 ERRORS?! - NeroX98 - 13.11.2012

Try this...

Код:
if(strcmp(cmdtext, "/BreakVault", true) == 0)
{
	if(IsPlayerInRangeOfPoint(playerid,9,1453.69995117,-986.90002441,14.89999962))
	{ //Bank Vault
		if(!(PlayerInfo[playerid][pMember] == 0)) return SendClientMessage(playerid,COLOR_GREY," You are not a BankRobber or Bank Director");
		{
 			if(BankVault==0)
    			{
     				BankVault = 1;
       				MoveObject(BankVaultDoor, 1453.69995117,-985.00000000,14.89999962, 0.5);
       			}
	    		else if(BankVault==1)
		   	{
		       		BankVault = 0; // 0 = stдngd dцrr! 0an ska дven vara "InRangeOfPoint"
		       		MoveObject(BankVaultDoor, 1453.69995117,-986.90002441,14.89999962, 0.5);
			}
			return 1;
		}
	}
	return 1;
}



Re: Why do i get 26 ERRORS?! - goviscrap - 13.11.2012

Thanks man it worked! +Rep


Re: Why do i get 26 ERRORS?! - MatZZPL - 13.11.2012

Next time always check brackets "{" 90% of the time its the.


Re: Why do i get 26 ERRORS?! - goviscrap - 13.11.2012

I will