SA-MP Forums Archive
Error with dialog - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error with dialog (/showthread.php?tid=262264)



Error with dialog - kiss - 17.06.2011

Error:

C:\Users\Kasutaja\Desktop\Serv 2008 - 2011 scriptimine\gamemodes\ToriRP.pwn(7124) : error 001: expected token: ";", but found "-identifier-"

Line:

new msg[128]
format(msg,128,"Please enter your password.\nAnd press enter or log-in");
ShowPlayerDialog(playerid,22,DIALOG_STYLE_INPUT,"L S Roleplay",msg,"Log-in","Exit");
return 1;


Re: Error with dialog - sleepysnowflake - 17.06.2011

pawn Код:
new msg[128];



Re: Error with dialog - WooTFTW - 17.06.2011

Why did you use format, if you dont need it in this case.
pawn Код:
ShowPlayerDialog(playerid,22,DIALOG_STYLE_INPUT,"L S Roleplay","Please enter your password.\nAnd press enter or log-in","Log-in","Exit");
use this instead of those 3 lines.