SA-MP Forums Archive
Mismatch.... 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: Mismatch.... Help. (/showthread.php?tid=634576)



Mismatch.... Help. - ProBro - 21.05.2017

error 035: argument type mismatch (argument 3)

Код:
}
	if (strcmp ("/help", cmdtext, true, 10) == 0)
    ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, "Welcome to Wizard War Beta By Fahad \n As a Wizard,Your job is to hunt down all other wizards & take over the world\n As a wizard use LALT for your Wand.\n Furthermore use /cmds", "Close", "");
	}



Re: Mismatch.... Help. - ProBro - 21.05.2017

EDit,There is return 1;


Re: Mismatch.... Help. - Dayrion - 21.05.2017

PHP код:
ShowPlayerDialog(playerid999DIALOG_STYLE_MSGBOX"Welcome to Wizard War Beta By Fahad \n As a Wizard,Your job is to hunt down all other wizards & take over the world\n As a wizard use LALT for your Wand.\n Furthermore use /cmds""Close"""); 



Re: Mismatch.... Help. - iLearner - 21.05.2017

You were missing dialogid parameter.


Re: Mismatch.... Help. - YouHack - 22.05.2017

You should set the dialog id after "playerid", always follow this schema:
Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
Helpful info: It is recommended to use definitions (#define) to determine which IDs dialogs have, to avoid confusion in the future. You should never use literal numbers for IDs - it gets confusing. [source], Example:
PHP код:
#define DIALOG_OF_WHATEVER_YOU_WANT 1
// this dialog has id 1 so you can use the define instead of id, defines should be after includes before any function.
ShowPlayerDialog(playeridDIALOG_OF_WHATEVER_YOU_WANTDIALOG_STYLE_MSGBOX"Welcome to Wizard War Beta By Fahad \n As a Wizard,Your job is to hunt down all other wizards & take over the world\n As a wizard use LALT for your Wand.\n Furthermore use /cmds""Close""");