Help, please
#1

I need help. I don't Understand this Error. Please, help me!
Ё
Код:
C:\Users\Silvio\Desktop\Train.pwn(275) : error 030: compound statement not closed at the end of file (started at line 233)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
	if(response)
 		{
            if(listitem == 0)
            {
            GivePlayerMoney(playerid, -75);
            PlayerInfo[playerid][pLS] = 1;
            SCM(playerid, COLOR_ORANGE, "Kupio si kartu za Los Santos! Ugodan put");
            SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
            SetTimerEx("timer", 60000, false, "i", playerid);
            }
            if(listitem == 1)
            {
            GivePlayerMoney(playerid, -40);
            PlayerInfo[playerid][pLV] = 1;
            SCM(playerid, COLOR_ORANGE, "Kupio si kartu za Las Venturas! Ugodan put");
            SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
            SetTimerEx("timer", 60000, false, "i", playerid);
			}
  	if(dialogid == DIALOG_LV)
    {
		if(response)
 		{
            if(listitem == 0)
            {
            GivePlayerMoney(playerid, -42);
            PlayerInfo[playerid][pSF] = 1;
            SCM(playerid, COLOR_ORANGE, "Kupio si kartu za San Fierro! Ugodan put");
            SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
            SetTimerEx("timer", 60000, false, "i", playerid);
            }
            if(listitem == 1)
            {
            GivePlayerMoney(playerid, -105);
			PlayerInfo[playerid][pLS] = 1;
            SCM(playerid, COLOR_ORANGE, "Kupio si kartu za Los Santos! Ugodan put");
            SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
            SetTimerEx("timer", 120000, false, "i", playerid);
			}
		}
	}
	return 1;
}
Reply
#2

you had a missing '}'
pawn Код:
if(response)
    {
        if(listitem == 0)
        {
            GivePlayerMoney(playerid, -75);
            PlayerInfo[playerid][pLS] = 1;
            SCM(playerid, COLOR_ORANGE, "Kupio si kartu za Los Santos! Ugodan put");
            SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
            SetTimerEx("timer", 60000, false, "i", playerid);
        }
        if(listitem == 1)
        {
            GivePlayerMoney(playerid, -40);
            PlayerInfo[playerid][pLV] = 1;
            SCM(playerid, COLOR_ORANGE, "Kupio si kartu za Las Venturas! Ugodan put");
            SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
            SetTimerEx("timer", 60000, false, "i", playerid);
        }
        if(dialogid == DIALOG_LV)
        {
            if(response)
            {
                if(listitem == 0)
                {
                    GivePlayerMoney(playerid, -42);
                    PlayerInfo[playerid][pSF] = 1;
                    SCM(playerid, COLOR_ORANGE, "Kupio si kartu za San Fierro! Ugodan put");
                    SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
                    SetTimerEx("timer", 60000, false, "i", playerid);
                }
                if(listitem == 1)
                {
                    GivePlayerMoney(playerid, -105);
                    PlayerInfo[playerid][pLS] = 1;
                    SCM(playerid, COLOR_ORANGE, "Kupio si kartu za Los Santos! Ugodan put");
                    SetPlayerPos(playerid, 1734.4635009766,-1957.1684570313,0.98593759536743);
                    SetTimerEx("timer", 120000, false, "i", playerid);
                }
            }
        }
    }
    return 1;
}
Reply
#3

Don't work
Reply
#4

what doesnt work..
what error do you get now
Reply
#5

Again throws the same error
Reply
#6

Stop posting in all bold and go look through your code for more missing closing brackets.
Reply
#7

Why? I can't fix this Error, I need help!
Reply
#8

If you use proper indentation in your code you will find your missing bracket very easily. You line up your code to your opening and closing brackets and if you mess up, you'll find it immediately
Reply
#9

Can you do this?
Reply
#10

Quote:
Originally Posted by vannesenn
Посмотреть сообщение
Can you do this?
You can't even compare opening and closing brackets? Stop scripting and start with the basics again. Copy paste will bring you nowhere
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)