View Single Post
Yevorz
Junior Member
Join Date: Sep 2016
Old 10-02-2016 , 00:18   Re: CSGO Give weapons WC3 (specify race)
Reply With Quote #4

No, Ive checked they're all there.
I tried the if(race==thisraceid) again in this.

Code:
public Action:Event_Spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new i = GetClientOfUserId(GetEventInt(event, "userid"));
    RemoveWeapons(i);
    
 }

public Action:Event_Start(Handle:event, const String:name[], bool:dontBroadcast)
{
    new i = GetClientOfUserId(GetEventInt(event, "userid"));
    RemoveWeapons(i);

}
RemoveWeapons(client, race)
{ 
    Client_RemoveAllWeapons(client, "weapon_knife", true); // Removes all the weapons ; Add a weapon name into the "" to exclude that weapon.
    {
    	if(race==thisRaceID)
    	{
        Client_GiveWeaponAndAmmo(client, "weapon_ssg08", true, 90);
        Client_GiveWeaponAndAmmo(client, "weapon_fiveseven", true, 90);
	}
}
}
But I get error

// War3Source_000_Paladin.SP(190) : error 092: number of arguments does not match definition
// War3Source_000_Paladin.SP(197) : error 092: number of arguments does not match definition
(lines highlighted red)
__________________
Don't get Drunk
Have some Skunk

Last edited by Yevorz; 10-02-2016 at 00:19.
Yevorz is offline