SA-MP Forums Archive
Invalid expression help! - 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: Invalid expression help! (/showthread.php?tid=403291)



Invalid expression help! - SmithyComp - 29.12.2012

Error message
Код HTML:
C:\Users\Greg\Desktop\Gamemode New\gamemodes\gm.pwn(7314) : error 029: invalid expression, assumed zero
Line of error
Код HTML:
ShowPlayerDialogEx(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,"{FFA500}changeme - Login",string,"Login","Quit");



Re: Invalid expression help! - Patrick - 29.12.2012

Try This
pawn Код:
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,"{FFA500}changeme - Login",string,"Login","Quit");



Re: Invalid expression help! - SmithyComp - 29.12.2012

Quote:
Originally Posted by pds2012
Посмотреть сообщение
Try This
pawn Код:
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,"{FFA500}changeme - Login",string,"Login","Quit");
Same errors.


Re: Invalid expression help! - Dolby - 29.12.2012

Post the line 7313.


Re: Invalid expression help! - Patrick - 29.12.2012

Show the code on line 7313.


Re: Invalid expression help! - SmithyComp - 29.12.2012

Entire case;

Код HTML:
case 3: {
			format(string, sizeof(string), "{FFFFFF}Wrong password.\n\n{FFFFFF}That username is registered, please enter your password below.\n\n{FFA500}Username: {FFFFFF}%s\n\n{FFA500}Password:", GetPlayerNameEx(playerid));
			ShowPlayerDialogEx(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,"{FFA500}changeme - Login",string,"Login","Quit");
		}
Full line of errors;
Код HTML:
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(2789) : warning 203: symbol is never used: "iPlayerTwo"
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(3202) : warning 203: symbol is never used: "playerid"
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(3211) : warning 203: symbol is never used: "iPlayer"
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : error 029: invalid expression, assumed zero
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : warning 215: expression has no effect
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : warning 215: expression has no effect
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : warning 215: expression has no effect
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : warning 215: expression has no effect
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : error 001: expected token: ";", but found ")"
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : error 029: invalid expression, assumed zero
C:\Users\Greg\Desktop\Gamemode\gamemodes\gmm.pwn(7314) : 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: Invalid expression help! - Dolby - 29.12.2012

Show all code.


Re: Invalid expression help! - SmithyComp - 29.12.2012

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
Show all code.
Do you mean every single line?


Re: Invalid expression help! - Dolby - 29.12.2012

Quote:
Originally Posted by SmithyComp
Посмотреть сообщение
Do you mean every single line?
Show me all switch code.


Re: Invalid expression help! - ViruZz - 10.01.2013

pawn Код:
error 001: expected token: ";", but found ")"
There is your problem