SA-MP Forums Archive
Help me with error 201 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me with error 201 (/showthread.php?tid=350904)



Help me with error 201 - Stefand - 14.06.2012

Hey,

Can someone fix this for me?

pawn Код:
C:\Users\Stefan Dorst\Desktop\Volcom Rp\gamemodes\SRP.pwn(10177) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
case 3333:
            {
                ShowPlayerDialog(playerid,3334,DIALOG_STYLE_LIST,"Text's Color","{FA0404}Red\n{0704FA}Blue\n{2CF11A}Green\n{E2FF09}Yellow\n{FF4101}Orange\n{E97AFD}Pink\n{7A7A7A}Grey\n{330099}Indigo","Select","Cancel");
                else SendClientMessage(playerid, COLOR_BLUE , "Text haven't been placed");
            }
the error line is the line with "else"


Re: Help me with error 201 - Flake. - 14.06.2012

should be

pawn Код:
}
else
{



Re: Help me with error 201 - mincer1667 - 14.06.2012

pawn Код:
case 3333:
            {
                ShowPlayerDialog(playerid,3334,DIALOG_STYLE_LIST,"Text's Color","{FA0404}Red\n{0704FA}Blue\n{2CF11A}Green\n{E2FF09}Yellow\n{FF4101}Orange\n{E97AFD}Pink\n{7A7A7A}Grey\n{330099}Indigo","Select","Cancel");
                SendClientMessage(playerid, COLOR_BLUE , "Text haven't been placed");
            }
there is no if so not in need of else


Re: Help me with error 201 - Stefand - 14.06.2012

Fixed, I didn't look well ;p