ann no overload matching

Started by umar4911, Dec 27, 2017, 04:37 PM

Previous topic - Next topic

umar4911

The error is there is no overload matching this argument
function anncatct(plr)
{
local player = FindPlayer(plr);
if(player && player.Skin == 2) Announce("~b~Counter Terrorists", player, 8);
else return;
}
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

=RK=MarineForce

What is Counter Terrorits?

Which Generation server you are making? @umar4911

=RK=MarineForce

You Making Like Counter Strike

Ask Kripton he is already make this generation

umar4911

Quote from: =RK=MarineForce on Dec 27, 2017, 09:02 PMYou Making Like Counter Strike

Ask Kripton he is already make this generation
First dont double post. Edit the last one. And I want to make it on my own behalf
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

!

Quote from: umar4911 on Dec 27, 2017, 04:37 PMThe error is there is no overload matching this argument
function anncatct(plr)
{
local player = FindPlayer(plr);
if(player && player.Skin == 2) Announce("~b~Counter Terrorists", player, 8);
else return;
}
If you are using this function inside a class use
::Announce

Discord: zeus#5155

umar4911

Quote from: ! on Dec 28, 2017, 10:05 AM
Quote from: umar4911 on Dec 27, 2017, 04:37 PMThe error is there is no overload matching this argument
function anncatct(plr)
{
local player = FindPlayer(plr);
if(player && player.Skin == 2) Announce("~b~Counter Terrorists", player, 8);
else return;
}
If you are using this function inside a class use
::Announce
Worked
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

=RK=MarineForce

#6
function onPlayerRequestClass( player, classID, team, skin )
{
switch( skin )
    {
    case 87:
    {
 player.SetAnim(29,210);
 Announce( " [Counter Terrorist ]  ", player, 0 );
    }
    break;
    case 2:
    {

 Announce( "****", player, 1 );
    }
    break;
 }

Hello Umar  Its Help!


umar4911

Quote from: =RK=MarineForce on Dec 28, 2017, 11:16 AMfunction onPlayerRequestClass( player, classID, team, skin )
{
switch( skin )
    {
    case 87:
    {
 player.SetAnim(29,210);
 Announce( " [ " + GetSkinName( player.Skin ) + " ] ", player, 0 );
    }
    break;
    case 2:
    {

 Announce( "****", player, 1 );
    }
    break;
 }
This is a minigame and your code also off topic
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter