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

Quote:
Originally Posted by Matnix
Посмотреть сообщение
CHANGE.
pawn Код:
if listitem == 0)
TO
pawn Код:
if(listitem == 0)
pawn Код:
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;
    }
} // you forgot that one
It's will work normaly.
On the end there I recently saw that on my test script of this..

I tired but it just got worse:

pawn Код:
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1589) : warning 217: loose indentation
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1596) : warning 217: loose indentation
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1622) : warning 217: loose indentation
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1622) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1622) : error 004: function "OnPlayerClickPlayer" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1627) : warning 225: unreachable code
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1627) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1627) : error 004: function "robc" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1633) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1633) : error 004: function "wantedT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1640) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1640) : error 004: function "meat" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1649) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1649) : error 004: function "GolfTurfT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1656) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1656) : error 004: function "PipeTurfT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1664) : error 029: invalid expression, assumed zero
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1664) : error 004: function "MotelVTurfT" is not implemented
D:\Davids\Scripting\Server Las Venturas TDM mix\LV.pwn(1678) : error 030: compound statement not closed at the end of file (started at line 1514)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


15 Errors.
I tired with

"that thing on the end" of the code..

And:

pawn Код:
if(listitem == 0)
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: 5 Guest(s)