Checking Weapon ID-Name
#1

Hello SA-MP,

Story: I was quite exited listening to Snoop Dogg - Boss Life and developing my project, when i find myself with an error that says:

pawn Код:
error 035: argument type mismatch (argument 1)
Okay, i check and it was here:

pawn Код:
new checkweapon = CompareWeaponName(weapon);
So i went to the function to see if i did something wrong...

pawn Код:
public CompareWeaponName(string[])
{
    for (new i=1; i <= 47; i++)
    {
        if(strcmp(aWeaponNames[i], string, true) == 0)
        {
            return i;
        }
    }
    return false;
}
Now i'm hitting my head on a nail and i can't understand what's wrong.

Thanks for reading and possible help.
Reply


Messages In This Thread
Checking Weapon ID-Name - by Ruben_Alonso - 21.04.2012, 12:27
Re: Checking Weapon ID-Name - by Roel - 21.04.2012, 12:31
Re: Checking Weapon ID-Name - by Ruben_Alonso - 21.04.2012, 12:33
Re: Checking Weapon ID-Name - by Roel - 21.04.2012, 12:35
Re: Checking Weapon ID-Name - by Ruben_Alonso - 21.04.2012, 12:36
Re: Checking Weapon ID-Name - by Roel - 21.04.2012, 12:37
Re: Checking Weapon ID-Name - by Ruben_Alonso - 21.04.2012, 12:38
Re: Checking Weapon ID-Name - by Roel - 21.04.2012, 12:39
Re: Checking Weapon ID-Name - by Ruben_Alonso - 21.04.2012, 12:41
Re: Checking Weapon ID-Name - by Roel - 21.04.2012, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)