Why do i get 26 ERRORS?!
#1

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;
	}
Reply
#2

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;
}
Reply
#3

Thanks man it worked! +Rep
Reply
#4

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

I will
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)