number of arguments does not match definition
#1

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
               
}
          }
        } 
Reply
#2

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

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)
Reply
#4

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

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

Код:
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;
}
Reply
#7

just use cmd_tele(playerid,"");
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)