SA-MP Forums Archive
Argument Type Mismatch (argument 3) - 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: Argument Type Mismatch (argument 3) (/showthread.php?tid=243972)



Argument Type Mismatch (argument 3) - Max_Coldheart - 25.03.2011

Okay so Im having this problem:
pawn Код:
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\Mystic_RP.pwn(342) : error 035: argument type mismatch (argument 3)
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\Mystic_RP.pwn(348) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
And the lines are:
342
pawn Код:
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, REGISTER_DIALOG,  "Hello, you are registered.", "Hello again, please use /login to log in to your account.", "Login", "Exit");
348:
pawn Код:
ShowPlayerDialog(playerid, REGISTER_DIALOG,  "Hello, you are registered.", "Hello again, please use /login to log in to your account.", "Login", "Exit");
and here its defined:
pawn Код:
#define REGISTER_DIALOG 1



Re: Argument Type Mismatch (argument 3) - Max_Coldheart - 25.03.2011

Edited


Re: Argument Type Mismatch (argument 3) - Zh3r0 - 25.03.2011

ShowPlayerDialog has playerid, the dialog id, the style, header title , inside box info, button 1 and button 2!

You are missing DIALOG_STYLE... and Header title!

https://sampwiki.blast.hk/wiki/ShowPlayerDialog


Re: Argument Type Mismatch (argument 3) - Max_Coldheart - 25.03.2011

oh, thanks logical mistake