zma4.pwn(8659) : warning 203: symbol is never used: "ServerWeapon"
#1


IMAGES

Код HTML:
ServerWeapon(playerid, weaponid, ammo)
{
if(weaponid >= 1 && weaponid <= 15)
 	{
	Weapons[playerid][Melee] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}

		if( weaponid >= 16 && weaponid <= 18 || weaponid == 39 ) // Checking Thrown
 	{
	Weapons[playerid][Thrown] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}
	if( weaponid >= 22 && weaponid <= 24 ) // Checking Pistols
 	{
	Weapons[playerid][Pistols] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}

	if( weaponid >= 25 && weaponid <= 27 ) // Checking Shotguns
 	{
	Weapons[playerid][Shotguns] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}
	if( weaponid == 28 || weaponid == 29 || weaponid == 32 ) // Checking Sub Machine Guns
 	{
	Weapons[playerid][SubMachine] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}

	if( weaponid == 30 || weaponid == 31 ) // Checking Assault
 	{
	Weapons[playerid][Assault] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}

	if( weaponid == 33 || weaponid == 34 ) // Checking Rifles
 	{
	Weapons[playerid][Rifles] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}
	if( weaponid >= 35 && weaponid <= 38 ) // Checking Heavy
 	{
	Weapons[playerid][Heavy] = weaponid;
	GivePlayerWeapon(playerid, weaponid, ammo);
	return 1;
	}
return 1;
}
Please help me
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)