SA-MP Forums Archive
Help with Error 029. - 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 with Error 029. (/showthread.php?tid=531901)



Help with Error 029. - DragoA - 15.08.2014

Hi, I am scripting a Login Dialog Box.

Error Code:
Quote:

C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Pastebin of entire script:
http://pastebin.com/ZFaXgtwG


Re: Help with Error 029. - MicroD - 15.08.2014

You forgot to put ) at the end.
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Enter Your Password Below:", "Login", "Cancel";
v
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Enter Your Password Below:", "Login", "Cancel");



Re: Help with Error 029. - Faisal_khan - 15.08.2014

pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Enter Your Password Below:", "Login", "Cancel");
        return 1;
}
Missed a bracket to close the function.


Re: Help with Error 029. - DragoA - 15.08.2014

Now it says this:
Quote:

C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : error 001: expected token: ";", but found ")"
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\SAMP Server\gamemodes\DFDMv1.pwn(59) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.




Re: Help with Error 029. - MicroD - 15.08.2014

#define DIALOG_LOGIN 1


Re: Help with Error 029. - DragoA - 15.08.2014

Thanks


Re: Help with Error 029. - DragoA - 15.08.2014

Okay, now IG it comes up with the Login thing, but where it is supposed to say Login it says "_________"


Re: Help with Error 029. - MicroD - 15.08.2014

Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Enter your password below:", "Login", "Cancel");