Return_CMD unknown warnings -
donhu789 - 03.09.2016
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WEAPONS)
{
if(response) // If they clicked 'Select' or double-clicked a weapon
{
// Give them the weapon
switch(listitem)
{
case 0: cmd_sf(playerid);
case 1: cmd_lv(playerid);
case 2: cmd_ls(playerid);
case 3: cmd_sfa(playerid);
case 4: cmd_lva(playerid);
case 5: cmd_lsa(playerid);
case 6: cmd_aa(playerid);
case 7: cmd_beach(playerid);
case 8: cmd_drift1(playerid);
case 9: cmd_4dragons(playerid);
case 10: cmd_lvtune(playerid);
case 11: cmd_sftune(playerid);
case 12: cmd_mc(playerid);
case 13: cmd_arch(playerid);
case 14: cmd_loco(playerid);
case 15: cmd_doherty(playerid);
}
}
return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}
return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
i have no idea why the hell is this giving out errors
PHP код:
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3853) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3854) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3855) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3856) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3857) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3858) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3859) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3860) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3861) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3863) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3864) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3865) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3866) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3867) : warning 202: number of arguments does not match definition
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3868) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
16 Warnings.
Re: Return_CMD unknown warnings -
jlalt - 03.09.2016
You have to use playerid and params to call command
PHP код:
cmd_command(playerid, params[]);
For ex change
PHP код:
cmd_sftune(playerid);
To
PHP код:
cmd_sftune(playerid, "");
Re: Return_CMD unknown warnings -
donhu789 - 03.09.2016
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WEAPONS)
{
if(response) // If they clicked 'Select' or double-clicked a weapon
{
// Give them the weapon
switch(listitem)
{
case 0: cmd_sf(playerid, "");
case 1: cmd_lv(playerid, "");
case 2: cmd_ls(playerid, "");
case 3: cmd_sfa(playerid, "");
case 4: cmd_lva(playerid, "");
case 5: cmd_lsa(playerid, "");
case 6: cmd_aa(playerid, "");
case 7: cmd_beach(playerid, "");
case 8: cmd_drift1(playerid, "");
case 9: cmd_4dragons(playerid, "");
case 10: cmd_lvtune(playerid, "");
case 11: cmd_sftune(playerid, "");
case 12: cmd_mc(playerid, "");
case 13: cmd_arch(playerid, "");
case 14: cmd_loco(playerid, "");
case 15: cmd_doherty(playerid, "");
}
}
return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}
return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
giving more error
Код:
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3853) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3854) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3855) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3857) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3858) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3859) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3860) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3861) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3862) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3863) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3864) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3866) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3867) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\All Users\Desktop\NRG New Evolution\Main Gamemode\Stable Version\gamemodes\ngcgm.pwn(3868) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
14 Errors.
Re: Return_CMD unknown warnings -
GoldenLion - 03.09.2016
Replace these "" with "\1".
Re: Return_CMD unknown warnings -
donhu789 - 03.09.2016
that doesn't work too :/
Re: Return_CMD unknown warnings -
TORKQ - 03.09.2016
What command processor are you using? Maybe there are some changes in your command processors include file (in zcmd.inc i guess) ?
Re: Return_CMD unknown warnings -
donhu789 - 03.09.2016
im using ZCMD .-.
Re: Return_CMD unknown warnings -
Shinja - 03.09.2016
Try replacing "" by EOS
Re: Return_CMD unknown warnings -
Stinged - 03.09.2016
Show us how you created a command (one of those)
Re: Return_CMD unknown warnings -
SoLetsGO - 03.09.2016
case 9: cmd_4dragons(playerid, "");
I think commands cannot start with a number?