One Warning
#1

Hello. When I compiling my gamemode I get this warning:
pawn Код:
(2442) : warning 202: number of arguments does not match definition
Here's the script:
pawn Код:
if(dialogid == Stuntzonos)
{
        if(!response)
        {
        ShowPlayerDialog(playerid, Teleportai, DIALOG_STYLE_LIST, "Teleportai", "{FFFF00}Stunt Zonos\n{FFFF00}Рuoliai\n{FFFF00}Tuningavimo Garazai\n{FFFF00}Drift Trasos\n{FFFF00}Lenktynлs\n{FFFF00}DM Zonos\n{FFFF00}Iррukiai\n{FFFF00}Kita", "Gerai", "Atрaukti");
        }
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    (2442 line) return cmd_aa(playerid);
                }
            }
        }
}
Reply
#2

Show us the full "ShowPlayerDialog".
Reply
#3

You can fix it by showing us the other things that use this one,or just delete that line and copy/paste the command aa's code there under case 0
Edit:
pawn Код:
return cmd_aa(playerid, params[]);
Reply
#4

Show the command aa
CMD:aa
Reply
#5

Are you using zcmd? In that case...
Код:
return cmd_aa(playerid, params);
Reply
#6

Quote:
Originally Posted by Manyula
Посмотреть сообщение
Are you using zcmd? In that case...
Код:
return cmd_aa(playerid, params);
Yeah. But then I get this error:
Код:
(2448) : error 017: undefined symbol "params"
Reply
#7

Код:
return cmd_aa(playerid, params[]);
Reply
#8

Just Copy the code under the command aa and paste it under case 0...
Reply
#9

do like this
pawn Код:
new params[10];
return cmd_aa(playerid, params);
Reply
#10

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
do like this
pawn Код:
new params[10];
return cmd_aa(playerid, params);
Thanks it's working
+REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)