View Single Post
Author Message
Nubbe
Junior Member
Join Date: Sep 2021
Old 09-05-2021 , 17:42   Need some help with this
Reply With Quote #1

i cant seem to figure out why this gives me errors

Code:
	
        char Target[64];
	char cl[32];
	GetCmdArg(1, Target, sizeof(Target));
	GetCmdArg(2, cl, sizeof(cl));

	char target_name[MAX_TARGET_LENGTH];
	int target_list[MAXPLAYERS], target_count;
	bool tn_is_ml;
 
	if ((target_count = ProcessTargetString(
			Target,
			client,
			target_list,
			MAXPLAYERS,
			COMMAND_FILTER_CONNECTED,
			target_name,
			sizeof(target_name),
			tn_is_ml)) <= 0)
	{
		void ReplyToTargetError (int client, int target_count)
		return Plugin_Handled;
	}
And it gives these errors when i compile
test.sp(53) : warning 219: local variable "ReplyToTargetError" shadows a variable at a preceding level
test.sp(53) : error 001: expected token: ";", but found "("
test.sp(53) : error 029: invalid expression, assumed zero
test.sp(53) : error 029: invalid expression, assumed zero
test.sp(53) : fatal error 190: too many error messages on one line

Last edited by Nubbe; 09-05-2021 at 18:13.
Nubbe is offline