One Warning - 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: One Warning (
/showthread.php?tid=523011)
One Warning -
Tadas - 30.06.2014
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);
}
}
}
}
Re: One Warning -
Twizted - 30.06.2014
Show us the full "ShowPlayerDialog".
Re: One Warning -
R0 - 30.06.2014
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[]);
Re: One Warning -
Inn0cent - 30.06.2014
Show the command aa
CMD:aa
Re: One Warning -
Manyula - 30.06.2014
Are you using zcmd? In that case...
Код:
return cmd_aa(playerid, params);
Re: One Warning -
Tadas - 30.06.2014
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"
Re: One Warning -
Rittik - 30.06.2014
Код:
return cmd_aa(playerid, params[]);
Re: One Warning -
R0 - 30.06.2014
Just Copy the code under the command aa and paste it under case 0...
Re: One Warning -
BroZeus - 30.06.2014
do like this
pawn Код:
new params[10];
return cmd_aa(playerid, params);
Re: One Warning -
Tadas - 30.06.2014
Quote:
Originally Posted by BroZeus
do like this
pawn Код:
new params[10]; return cmd_aa(playerid, params);
|
Thanks it's working
+REP