Staement isnt closed? How? This is weird
#6

Quote:
Originally Posted by Shockey HD
Посмотреть сообщение
Heres the code that this error is coming up for.

Код:
	if(dialogid == 941)
	{
		if(response)
		{
			if(listitem == 0)
			{
			GameTextForPlayer(playerid, "Parachutes for VIP", 5000, 6);
 			}
 			if(listitem == 1)
			{
			if(IsPlayerVipType(playerid,1)) { // 3418
			GivePlayerWeapon(playerid,46,1);
			SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
			SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 1 for admins!");
			}
			if(listitem == 2)
			{
			if(IsPlayerVipType(playerid,1)) {
			GivePlayerWeapon(playerid,46,1);
			SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
			SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 2 for admins!");
			}
			if(listitem == 3)
			{
			if(IsPlayerVipType(playerid,1)) {
			GivePlayerWeapon(playerid,46,1);
			SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 3 for admins!");
			SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
			}
			if(listitem == 4)
			{
			if(IsPlayerVipType(playerid,1)) {
			GivePlayerWeapon(playerid,46,1);
			SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
			SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 4 for admins!");
			}
			if(listitem == 5)
			{
   			if(IsPlayerVipType(playerid,1)) {
   			GivePlayerWeapon(playerid,46,1);
			SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
			SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 5 for admins!");
			}
			if(listitem == 6)
			{
			GameTextForPlayer(playerid, "Parachutes for FreeMembers", 5000, 6);
 			}
			if(listitem == 7)
			{
			SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
			GivePlayerWeapon(playerid,46,1);
			SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 1 for freemembers!");
			 }
			if(listitem == 8)
			{
			GivePlayerWeapon(playerid,46,1);
			SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
			SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 2 for freemembers!");
 			}
		}
 	return 1;
	}
	return 0;
}
Код:
C:\Documents and Settings\Chris\Desktop\FreeRoam(2).pwn(3472) : error 030: compound statement not closed at the end of file (started at line (started at line 3418)
PHP код:
if(dialogid == 941)
{
    if(
response)
    {
        if(
listitem == 0)
        {
            
GameTextForPlayer(playerid"Parachutes for VIP"50006);
        }
        else if(
listitem == 1)
        {
            if(
IsPlayerVipType(playerid1))
            {
                
GivePlayerWeapon(playerid,46,1);
                
SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
                
SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 1 for admins!");
            }
        }
        else if(
listitem == 2)
        {
            if(
IsPlayerVipType(playerid,1))
            {
                
GivePlayerWeapon(playerid,46,1);
                
SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
                
SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 2 for admins!");
            }
        }
        else if(
listitem == 3)
        {
            if(
IsPlayerVipType(playerid,1))
            {
                
GivePlayerWeapon(playerid,46,1);
                
SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 3 for admins!");
                
SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
            }
        }
        else if(
listitem == 4)
        {
            if(
IsPlayerVipType(playerid,1))
            {
                
GivePlayerWeapon(playerid,46,1);
                
SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
                
SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 4 for admins!");
            }
        }
        else if(
listitem == 5)
        {
            if(
IsPlayerVipType(playerid,1))
            {
                
GivePlayerWeapon(playerid,46,1);
                
SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
                
SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 5 for admins!");
            }
        }
        else if(
listitem == 6)
        {
            
GameTextForPlayer(playerid"Parachutes for FreeMembers"50006);
        }
        else if(
listitem == 7)
        {
            
SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
            
GivePlayerWeapon(playerid,46,1);
            
SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 1 for freemembers!");
        }
        else if(
listitem == 8)
        {
            
GivePlayerWeapon(playerid,46,1);
            
SetPlayerPos(playerid,2529.000000,-1603.000000,1505.00000);
            
SendClientMessage(playerid,COLOR_GREEN,"You have gone to Parachue 2 for freemembers!");
        }
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
Staement isnt closed? How? This is weird - by Shockey HD - 23.07.2011, 21:32
Re: Staement isnt closed? How? This is weird - by HydraX - 23.07.2011, 21:39
Re: Staement isnt closed? How? This is weird - by Shockey HD - 23.07.2011, 21:50
Re: Staement isnt closed? How? This is weird - by =WoR=Varth - 24.07.2011, 00:51
Re: Staement isnt closed? How? This is weird - by Skylar Paul - 24.07.2011, 02:54
Re: Staement isnt closed? How? This is weird - by MoroDan - 24.07.2011, 09:46
Re: Staement isnt closed? How? This is weird - by Mean - 24.07.2011, 10:15
Re: Staement isnt closed? How? This is weird - by HuSs3n - 24.07.2011, 12:34
Re: Staement isnt closed? How? This is weird - by shaikh007 - 24.07.2011, 15:03
Re: Staement isnt closed? How? This is weird - by Shockey HD - 25.07.2011, 04:26

Forum Jump:


Users browsing this thread: 2 Guest(s)