SA-MP Forums Archive
How to Fix warning 202 ? - 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: How to Fix warning 202 ? (/showthread.php?tid=554533)



How to Fix warning 202 ? - WhiteAngels - 04.01.2015

How to Fix This Warning?

Код:
E:\Folder Dion\SA-MP\Server\0.3z\Freeroam\Y_INI Project\gamemodes\RgX-Original.pwn(5310) : warning 202: number of arguments does not match definition
E:\Folder Dion\SA-MP\Server\0.3z\Freeroam\Y_INI Project\gamemodes\RgX-Original.pwn(5311) : warning 202: number of arguments does not match definition
E:\Folder Dion\SA-MP\Server\0.3z\Freeroam\Y_INI Project\gamemodes\RgX-Original.pwn(5312) : warning 202: number of arguments does not match definition
E:\Folder Dion\SA-MP\Server\0.3z\Freeroam\Y_INI Project\gamemodes\RgX-Original.pwn(5313) : warning 202: number of arguments does not match definition
E:\Folder Dion\SA-MP\Server\0.3z\Freeroam\Y_INI Project\gamemodes\RgX-Original.pwn(5314) : warning 202: number of arguments does not match definition
All Scripts:

Код:
//================================General Commands==========================
    if(dialogid == DIALOG_COMMAND_C)
    {
        if(response) // If they clicked 'Select' or double-clicked a weapon
        {
            // Give them the weapon
            switch(listitem)
            {
                case 0: return cmd_gcmds(playerid);
                case 1: return cmd_vhelp(playerid);
                case 2: return cmd_househelp(playerid);
                case 3: return cmd_bhelp(playerid);
                case 4: return cmd_rules(playerid);
            }
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
Line 5310 - 5314 :

Код:
                case 0: return cmd_gcmds(playerid);
                case 1: return cmd_vhelp(playerid);
                case 2: return cmd_househelp(playerid);
                case 3: return cmd_bhelp(playerid);
                case 4: return cmd_rules(playerid);
This Warning make my Server restarting when i typed /c ...
Please,help me..!


Re: How to Fix warning 202 ? - UploaD - 04.01.2015

It must be like this , example

pawn Код:
return cmd_gcmds(playerid, "");
No parameters in OnDialogResponse sir.


Re: How to Fix warning 202 ? - WhiteAngels - 04.01.2015

Quote:
Originally Posted by UploaD
Посмотреть сообщение
It must be like this , example

pawn Код:
return cmd_gcmds(playerid, "");
No parameters in OnDialogResponse sir.
Work
Thank you