Got one error on a return statement
#1

Hello to all, after 2 years of good pause i'm here again improving my skills. This is a simple code of a simple anticheat made by me. I got only a problem here:

Код:
SendClientMessage(playerid, 0xFFFFFFFF, s);
	if(GetPlayerWeapon(playerid) == 38) Ban(playerid); //Ban if they have a minigun
	SendClientMessage(playerid, COLOR_GREEN, "[VANILLA-ANTICHEATS] YOU HAVE BEEN AUTO-BANNED FOR REASON: MINIGUN");
	if(GetPlayerWeapon(playerid) == 35) Ban(playerid); //Ban if they have a RPG
	SendClientMessage(playerid, COLOR_GREEN, "[VANILLA-ANTICHEATS] YOU HAVE BEEN AUTO-BANNED FOR REASON: RPG");
	if(GetPlayerWeapon(playerid) == 36) Ban(playerid); //Ban if they have a HEAT SEEKER
	SendClientMessage(playerid, COLOR_GREEN, "[VANILLA-ANTICHEATS] YOU HAVE BEEN AUTO-BANNED FOR REASON: HEAT SEEKER");
	
}

	return 1;
}
Line 295

Pastebin link:
Pastebin Code



I'm getting crazy about the error, someone can kindly help me out?
Reply


Messages In This Thread
Got one error on a return statement - by VanillaRain - 03.06.2015, 21:40
Re: Got one error on a return statement - by SickAttack - 03.06.2015, 21:47
Re: Got one error on a return statement - by VanillaRain - 03.06.2015, 21:49
Re: Got one error on a return statement - by VanillaRain - 04.06.2015, 09:24
Re: Got one error on a return statement - by Konstantinos - 04.06.2015, 10:44
Re: Got one error on a return statement - by VanillaRain - 04.06.2015, 11:30
Re: Got one error on a return statement - by Vince - 04.06.2015, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)