Raised This Month: $ Target: $400
 0% 

error 035: argument type mismatch (argument 1)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 12-02-2014 , 21:37   error 035: argument type mismatch (argument 1)
Reply With Quote #1

Hi.


Can not beat that error
PHP Code:
error 035argument type mismatch (argument 1
I've searched a lot but all i find in posts is easy errors (like adding 'id' when it don't need to be added or words mispell), but i can not find any mistakes in my code..

Guide me please what's wrong...

PHP Code:
#include <amxmodx>
#define MAX_ARG_LEN    128
#define MAX_ARGS_NUM 50

static command[MAX_ARGS_NUM][MAX_ARG_LEN]
new 
len

public client_command(id)
{
    new 
args read_argc()-// get number of client command arguments
    
    
for(new i;i<=args;i++)
        
read_argv(icommand[i], MAX_ARG_LEN// read all arguments to array "command"

    
if(equal(command[0],"amx_internalbancommand",22)) // if it is internal ban command
    
{
        
// command syntax "amx_internalbancommand" "#playerindex" *others not important*
        
for(new i;i<=31;i++) // loop until we find player index (if any), 31 is the last player index 
        
{
            
len strlen(i) + 1; <<<<<<<<<<< error 035argument type mismatch (argument 1)     // here we define a length of int "i" (i am using strlen, because there are no native function intlen and i have no idea how to convert int to string) plus one
            
if( equal(command[1],"#" i,len) ) <<<<<<<<<<< error 033: array must be indexed (variable "-unknown-")   // and here we check is our command argument matches the string, e.g. "#1"
            
{
                ...
                break
            }
        }
    }

Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode