Weapon adding problems (very weird)
#1

I have a gamemode with 4 teams, I want different weapons on each team.

Example:
I want to give Team Army a SMG (1000 ammo), M4(1000 ammo), Desert Eagle (500 ammo) and a Knife.

But, when I script it, it only gives the first weapon (SMG for example).

pawn Код:
if(gTeam[playerid] == TEAM_TERRORISTS)
    {
      GivePlayerWeapon(playerid, 9, 30);
        SetPlayerColor(playerid,COLOR_RED); // Red
    }
ID 9 is the Chainsaw ID, ID 30 the AK-47. It only gives the team the chainsaw, nothing else.
_________________________________________________
And another bug; when I enter more than 2 weapon ID's, it gives me a warning

Код:
D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(547) : warning 202: number of arguments does not match definition
D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(547) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Could someone tell me how to fix the ''only the first weapon at spawn'' bug and tell me how to add more than only 2 without warnings.
Reply


Messages In This Thread
Weapon adding problems (very weird) - by Andy_McKinley - 27.02.2010, 19:11
Re: Weapon adding problems (very weird) - by Torran - 27.02.2010, 19:14
Re: Weapon adding problems (very weird) - by Naxix - 27.02.2010, 19:15
Re: Weapon adding problems (very weird) - by Andy_McKinley - 27.02.2010, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)