Why? - 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: Why? (
/showthread.php?tid=488410)
Why? -
Rapeassboi - 17.01.2014
It tells me this when i compile
pawn Код:
warning 202: number of arguments does not match definition
and here is the line the warning goes to
pawn Код:
ShowPlayerDialog(playerid, DIALOG_REGISTER2, DIALOG_STYLE_LIST, "Male\rFemale", "Choose", "Cancel");
also it gives me an error
pawn Код:
error 001: expected token: ",", but found ";"
on this line
pawn Код:
format(pw, sizeof(pw), "%s", dini_Get(path, "password");
Re: Why? -
Vince - 17.01.2014
Missed a closing bracket, there.
Re: Why? -
ikey07 - 17.01.2014
You forgot titles section for dialog and at format add format(pw, sizeof(pw), "%s", dini_Get(path, "password"
));
Re: Why? -
Rapeassboi - 17.01.2014
where do i put the titles section in the dialog part?
Re: Why? -
ikey07 - 17.01.2014
Write ShowPlayerDialog( and wait abit, it will show you help line which will tell caption[]
Re: Why? -
PowerPC603 - 17.01.2014
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Re : Why? -
TheSy - 17.01.2014
You write:
"Male\rFemale"
And you forgot the title of the dialog (What will be the top).
It's:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_REGISTER2, DIALOG_STYLE_LIST, "TITLE", "Male\nFemale", "Choose", "Cancel");
And this line it's not:
format(pw, sizeof(pw), "%s", dini_Get(path, "password");
It's:
pawn Код:
format(pw, sizeof(pw), "%s", dini_Get(path, "password"));
Re: Why? -
Danialdano - 17.01.2014
ehghh
Re: Why? -
Rapeassboi - 17.01.2014
still gives me the warning..