[Pomoc]Error za system


Započeo Arnel_Bp, Februar 26, 2014, 12:08:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Nesto pokusavam, moja od 0
Detaljan opis problema: Pa napravio sam 2 baze, jednu sam napravio odavno i ima system za elevator, i radio je, sad sam zelio da ubacim jos jedan system u isti gamemode ali nesto ne ide ima errora, evo dacu vam dio skripte ako bi neko mogao to da mi prepravi ?
Dio skripte:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys == KEY_SECONDARY_ATTACK)
	{
	if(IsPlayerInRangeOfPoint(playerid,3.0,2522.21362, -2121.03613, 132.90820)|| IsPlayerInRangeOfPoint(playerid,3.0,2521.94751, -2120.95508, 14.74297)||IsPlayerInRangeOfPoint(playerid,3.0,2522.04834, -2120.96680, 120.13690))
	ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Krov{FF0000}\nPrizemlje{7CFC00}\nKancelarija","Pokreni","Izadji");
	}
	}
	return 1;
	}
	if(newkeys == KEY_SECONDARY_ATTACK)
	{
	if(IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)|| IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 94.61570)||IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 110.48210)||IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)||IsPlayerInRangeOfPoint(playerid,3.0,-203.29930, -1165.48511, 16.05040))
	ShowPlayerDialog(playerid,8236,DIALOG_STYLE_LIST,"{FF0000}Elevator","Office\nWeapon zone{7CFC00}\nDisco\nRoof\nGround floor","Pokreni","Izadji");
    }
    return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == 8235)
{
	if(response)
	{
	if(listitem == 0)
	{
	SetPlayerPos(playerid,2522.21362, -2121.03613, 132.90820);
	}
	if(listitem == 1)
	{
	SetPlayerPos(playerid,2521.94751, -2120.95508, 14.74297);
	}
	if(listitem == 2)
	{
	SetPlayerPos(playerid,2522.04834, -2120.96680, 120.13690);
	}
	}
	return 1;
}
if(dialogid == 8236)
	{
	if(response)
	{
	if(listitem == 0)
	{
	SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
	}
	if(listitem == 1)
	{
	SetPlayerPos(playerid,-203.42690, -1165.61829, 94.61570);
	}
	if(listitem == 2)
	{
	SetPlayerPos(playerid,-203.42690, -1165.61829, 110.48210);
	}
	if(listitem == 3)
	{
	SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
	}
	if(listitem == 4)
	{
	SetPlayerPos(playerid,-203.29930, -1165.48511, 16.05040);
	}
	}
	return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): http://oi60.tinypic.com/2jh5wy.jpg

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys == KEY_SECONDARY_ATTACK)
	{
		if(IsPlayerInRangeOfPoint(playerid,3.0,2522.21362, -2121.03613, 132.90820)|| IsPlayerInRangeOfPoint(playerid,3.0,2521.94751, -2120.95508, 14.74297)||IsPlayerInRangeOfPoint(playerid,3.0,2522.04834, -2120.96680, 120.13690))
		{
			ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Krov{FF0000}\nPrizemlje{7CFC00}\nKancelarija","Pokreni","Izadji");
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)|| IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 94.61570)||IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 110.48210)||IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)||IsPlayerInRangeOfPoint(playerid,3.0,-203.29930, -1165.48511, 16.05040))
		{
			ShowPlayerDialog(playerid,8236,DIALOG_STYLE_LIST,"{FF0000}Elevator","Office\nWeapon zone{7CFC00}\nDisco\nRoof\nGround floor","Pokreni","Izadji");
    	        }
	}
        return 1;
}









public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 8235)
	{
		if(response)
		{
			if(listitem == 0)
			{
				SetPlayerPos(playerid,2522.21362, -2121.03613, 132.90820);
			}
			if(listitem == 1)
			{
				SetPlayerPos(playerid,2521.94751, -2120.95508, 14.74297);
			}
			if(listitem == 2)
			{
				SetPlayerPos(playerid,2522.04834, -2120.96680, 120.13690);
			}
		}
	}
	if(dialogid == 8236)
	{
		if(response)
		{
			if(listitem == 0)
			{
				SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
			}
			if(listitem == 1)
			{
				SetPlayerPos(playerid,-203.42690, -1165.61829, 94.61570);
			}
			if(listitem == 2)
			{
				SetPlayerPos(playerid,-203.42690, -1165.61829, 110.48210);
			}
			if(listitem == 3)
			{
				SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
			}
			if(listitem == 4)
			{
				SetPlayerPos(playerid,-203.29930, -1165.48511, 16.05040);
			}
		}
	}
	return 1;
}