Return_CMD unknown warnings
#1

Код:
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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number 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 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
16 Warnings

Reply
#2

You have to use playerid and params to call command
PHP код:
cmd_command(playeridparams[]); 
For ex change
PHP код:
cmd_sftune(playerid); 
To
PHP код:
cmd_sftune(playerid""); 
Reply
#3

Код:
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.
Reply
#4

Replace these "" with "\1".
Reply
#5

that doesn't work too :/
Reply
#6

What command processor are you using? Maybe there are some changes in your command processors include file (in zcmd.inc i guess) ?
Reply
#7

im using ZCMD .-.
Reply
#8

Try replacing "" by EOS
Reply
#9

Show us how you created a command (one of those)
Reply
#10

case 9: cmd_4dragons(playerid, "");

I think commands cannot start with a number?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)