SA-MP Forums Archive
number of arguments does not match definition - 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: number of arguments does not match definition (/showthread.php?tid=652443)



number of arguments does not match definition - 3417512908 - 11.04.2018

Someone can help me? Thank!
Just like it.
I use zcmd.inc
PHP код:
if(dialogid == 11)
        {
          if(
response)
          {
                if(
listitem == 0)
               {
               
               }
               if(
listitem == 1)
               {
               
SendClientMessage(playerid,-1,"{FF8000}个人:我的菜单/wdcd 我的设置/wdsz 传送设置/ctp 停止播放音乐/tzbf");
               }
               if(
listitem == 2)
               {
               
cmd_tele(playerid);//error
               
}
          }
        } 



Re: number of arguments does not match definition - dwp12345 - 11.04.2018

Try this
PHP код:
cmd_tele(playerid,listitem); 
If is that not working, give me the script of that cmd


Re: number of arguments does not match definition - 3417512908 - 11.04.2018

Quote:
Originally Posted by dwp12345
Посмотреть сообщение
Try this
PHP код:
cmd_tele(playerid,listitem); 
If is that not working, give me the script of that cmd
not working
error 035: argument type mismatch (argument 2)


Re: number of arguments does not match definition - SeanDenZYR - 12.04.2018

Change
pawn Код:
cmd_tele(playerid);
to
pawn Код:
return cmd_tele(playerid, params);



Re: number of arguments does not match definition - MarioKamani - 12.04.2018

Quote:
Originally Posted by SeanDenZYR
Посмотреть сообщение
Change
pawn Код:
cmd_tele(playerid);
to
pawn Код:
return cmd_tele(playerid, params);
this


Re: number of arguments does not match definition - UFF - 13.04.2018

Код:
if(dialogid == 11) 
        { 
          if(response) 
          { 
                if(listitem == 0) 
               { 
                
               } 
               if(listitem == 1) 
               { 
               SendClientMessage(playerid,-1,"{FF8000}个人:我的菜单/wdcd 我的设置/wdsz 传送设置/ctp 停止播放音乐/tzbf"); 
               } 
               if(listitem == 2) 
               { 
               cmd_tele(playerid, " ");
               } 
          } 
        }
And

Код:
CMD:tele(playerid, params)
{
 //=======code
 return 1;
}



Re: number of arguments does not match definition - Mugala - 13.04.2018

just use cmd_tele(playerid,"");