Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: umar4911 on Dec 27, 2017, 04:37 PM

Title: ann no overload matching
Post by: umar4911 on Dec 27, 2017, 04:37 PM
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;
}
Title: Re: ann no overload matching
Post by: =RK=MarineForce on Dec 27, 2017, 09:01 PM
What is Counter Terrorits?

Which Generation server you are making? @umar4911
Title: Re: ann no overload matching
Post by: =RK=MarineForce on Dec 27, 2017, 09:02 PM
You Making Like Counter Strike

Ask Kripton he is already make this generation
Title: Re: ann no overload matching
Post by: umar4911 on Dec 28, 2017, 05:02 AM
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
Title: Re: ann no overload matching
Post by: ! 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
Title: Re: ann no overload matching
Post by: umar4911 on Dec 28, 2017, 11:06 AM
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
Title: Re: ann no overload matching
Post by: =RK=MarineForce on Dec 28, 2017, 11:16 AM
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!

Title: Re: ann no overload matching
Post by: umar4911 on Dec 28, 2017, 11:18 AM
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