AddPlayerClass HELP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AddPlayerClass HELP (
/showthread.php?tid=566363)
AddPlayerClass HELP -
Fantje - 05.03.2015
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 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\SvT Mike\gamemodes\SvTMike.pwn(509) : warning 202: number 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
AW: AddPlayerClass HELP -
Kaliber - 05.03.2015
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
Re: AddPlayerClass HELP -
MikE1990 - 05.03.2015
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);
Re: AddPlayerClass HELP -
Fantje - 05.03.2015
Thanks