AddPlayerClass HELP
#1

Heey guys

I want to have 4 guns in each class but I can only have 3.

My line:

PHP код:
AddPlayerClass(287,211.4132,1898.1892,16.9663,0.0,COMBAT_SHOTGUN,3000,DEAGLE,200,M4,2100,MP5,2100); // Army 
Error:

PHP код:
C:\Users\Administrator\Desktop\SvT Mike\gamemodes\SvTMike.pwn(509) : warning 202number of arguments does not match definition
C
:\Users\Administrator\Desktop\SvT Mike\gamemodes\SvTMike.pwn(509) : warning 202number of arguments does not match definition 
My Defines:

PHP код:
#define PISTOL 22
#define SILENCED_PISTOL 23
#define DEAGLE 24
#define AK47 30
#define M4 31
#define TEC9 32
#define MICRO_UZI 28
#define MP5 29
#define GRENADES 16
#define MOLOTOVS 18
#define TEAR_GAS 17
#define NIGHT_STICK 3
#define KNIFE 4
#define SHOTGUN 25
#define SAWNOFF_SHOTGUN 26
#define COMBAT_SHOTGUN 27
#define MICRO_UZI 28
#define SNIPER_RIFLE 34
#define RPG 35
#define ROCKET_LAUNCHER 36
#define FLAME_THROWER 37
#define MINIGUN 38
#define SPRAY_PAINT 41
#define FIRE_EXTINGUER 42
#define PARACHUTE 46
#define SACHET_CHARGERS 39
#define DETONATOR 40 
Please help
Reply
#2

Quote:
Originally Posted by Fantje
Посмотреть сообщение
I want to have 4 guns in each class but I can only have 3.
You recognized the problem

You can give the player only 3 guns..if you want to give him more, u must give him weapons under OnPlayerSpawn with GivePlayerWeapon

Greekz
Reply
#3

AddPlayerClass have only 11 parameters,if you want to give more than 3 weapons i suggest you to use GivePlayerWeapon
Код:
AddPlayerClass(287,211.4132,1898.1892,16.9663,0.0,COMBAT_SHOTGUN,3000,DEAGLE,200,M4,2100);
Reply
#4

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)