View Single Post
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 06-26-2018 , 11:21   Error: Argument type mismatch (argument 3)
Reply With Quote #1

When I do not have this include, I'm not getting an error of argument.
Code:
#include <amxmisc>
->
PHP Code:
ErrorArgument type mismatch (argument 3)
Error: Function heading differs from prototype 
i know is something with arg1..



these error:
Code:
new arg[ 64 ], arg1[ 64 ], arg2[ 64 ]

	new player = cmd_target( client, arg, arg1, command )
	
	player = command != MULTI_CVAR && command != VOTEMAP ? cmd_target( client, arg, arg1, command ) : 0;
stock of cmd_target:
Code:
stock cmd_target( client, const arg[], const arg1[], command ) 
{
	if ( !equal( arg1, "" )
	|| command == T_TRANSFER
	|| command == CT_TRANSFER
	|| command == SPEC_TRANSFER
	|| command == REVIVE 
	|| command == BURY 
	|| command == UNBURY 
	|| command == SLAY 
	|| command == SLAP
	|| command == UBERSLAP
	|| command == DRUG
	|| command == UNDRUG
	|| command == FLASH 
	|| command == ROCKET
	|| command == FIRE )
	{
		
	new player = find_player( "bl",arg );

	if ( player ) 
	{
		if ( player != find_player( "blj",arg ) ) 
		{
			ColorChat( client, "^3Error^1: There are more than 1 player with that name" );
		
			return 0;
		}
	}

	else if ( ( player = find_player( "c",arg ) ) ==0 && arg[ 0 ] == '#' && arg[ 1 ] )
	{
		player = find_player( "k",str_to_num( arg[ 1 ] ) );
	}

	if ( !player ) 
	{	
		return 0;
	}

	return player;
	}
	return 0;
}
I am trying to block that commands can not be made on FLAG = A, but my way isnt working i can use command on flag A
PHP Code:
        if(tempid != id && !(get_user_flagstempid ) & ADMIN_IMMUNITY))
            
formatex(szTextcharsmax(szText), "%s |\r* - > %s"szNameszTest[Clip[tempid]]) 

Last edited by Fuck For Fun; 06-26-2018 at 20:33. Reason: Solved
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun