Mismatch.... Help.
#1

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", "");
	}
Reply
#2

EDit,There is return 1;
Reply
#3

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"""); 
Reply
#4

You were missing dialogid parameter.
Reply
#5

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"""); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)