Compiling problem: "expected token: "*then", but found ")" "
#1

Hi!


I moved some things in a dialog just under to

the response in the dialog instead, but it gave me a lot of errors...

Code:
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1573) : error 001: expected token: "*then", but found ")"
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1573) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1590) : warning 225: unreachable code
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1597) : warning 217: loose indentation
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1623) : warning 217: loose indentation
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1623) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1623) : error 004: function "OnPlayerClickPlayer" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1628) : warning 225: unreachable code
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1628) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1628) : error 004: function "robc" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1634) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1634) : error 004: function "wantedT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1641) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1641) : error 004: function "meat" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1650) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1650) : error 004: function "GolfTurfT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1657) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1657) : error 004: function "PipeTurfT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1665) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1665) : error 004: function "MotelVTurfT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1679) : error 030: compound statement not closed at the end of file (started at line 1514)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


17 Errors.
Before it just were the 2 first error lines but it got worse when
I tired to fix it xD..

Have tired to find the issue for pretty long now, but couldn't find...


Code:


pawn Code:
if(dialogid == DIALOG_SELL)
        {
            if(response) // Button 1
            {
                if listitem == 0)
                {
               
                if(MeatRob[playerid] == 1)
                {
                GetPlayerMoney(playerid);
                GivePlayerMoney(playerid, 3000);
                SendClientMessage(playerid, Green, "You sold meet, you got 3000$!");
                MeatRob[playerid]=1;
                }
                else
                {
                    SendClientMessage(playerid, Green, "You don't have any meat to sell");
                }
                return 1;
                }
               
                if(listitem == 1)
                {
                    SendClientMessage(playerid, Green, "Should display the third altenative (Commands)");
                }
                return 1;
                }

Edit: Picture added in Attachments (So you have a clue how it looks)...
It changes a bit when you paste the code here.

And also good for the numbers on the right side...
Reply


Messages In This Thread
Compiling problem: "expected token: "*then", but found ")" " - by davve95 - 04.09.2013, 17:02
Re: Compiling problem: "expected token: "*then", but found ")" " - by Konstantinos - 04.09.2013, 17:07
Re: Compiling problem: "expected token: "*then", but found ")" " - by davve95 - 04.09.2013, 18:39
Re: Compiling problem: "expected token: "*then", but found ")" " - by Konstantinos - 04.09.2013, 18:40
Re: Compiling problem: "expected token: "*then", but found ")" " - by davve95 - 04.09.2013, 18:46
Re: Compiling problem: "expected token: "*then", but found ")" " - by DanishHaq - 04.09.2013, 18:50
Re: Compiling problem: "expected token: "*then", but found ")" " - by Konstantinos - 04.09.2013, 18:50
Re: Compiling problem: "expected token: "*then", but found ")" " - by davve95 - 04.09.2013, 18:56
Re : Compiling problem: "expected token: "*then", but found ")" " - by Matnix - 04.09.2013, 18:57
Re: Compiling problem: "expected token: "*then", but found ")" " - by Isolated - 04.09.2013, 18:59
Re: Re : Compiling problem: "expected token: "*then", but found ")" " - by davve95 - 04.09.2013, 19:02
Re: Compiling problem: "expected token: "*then", but found ")" " - by Konstantinos - 04.09.2013, 19:02
Re : Compiling problem: "expected token: "*then", but found ")" " - by Matnix - 04.09.2013, 19:05
Re: Re : Compiling problem: "expected token: "*then", but found ")" " - by davve95 - 04.09.2013, 19:10
Re: Compiling problem: "expected token: "*then", but found ")" " - by Konstantinos - 04.09.2013, 19:12
Re : Compiling problem: "expected token: "*then", but found ")" " - by Matnix - 04.09.2013, 19:15
Re: Re : Compiling problem: "expected token: "*then", but found ")" " - by Isolated - 04.09.2013, 20:22
Re: Compiling problem: "expected token: "*then", but found ")" " - by davve95 - 05.09.2013, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)