GetWeaponPickupCreatePos
#12

Quote:
Originally Posted by EmpireSk
Посмотреть сообщение
My code can not be fixed....? Because when I erase a symbol "&" so error is not, but servers will not show weapons
Your code means nothing, the "number" argument is unknown, what is its job? And I wrote you a function up. Use it instead.

Quote:
Originally Posted by TheToretto
Посмотреть сообщение
Why not.

Код:
new WeaponsObject[] = {
    1239,331,333,334,335,336,337,338,
    339,341,321,322,323,324,325,326,
    342,343,344,1239,1239,1239,346,
    347,348,349,350,351,352,353,355,
    356,372,357,358,359,360,361,362,
    363,364,365,366,367,368,369,371
};

#define ReturnWeapon(%0) WeaponsObject[%0]

CreateWeaponPickup(weaponid, Float:x, Float:y, Float:z)
{
    weaponid = ReturnWeapon(weaponid);
    CreateDynamicPickup(weaponid, 1, x, y, z, -1, -1, -1, STREAMER_PICKUP_SD);
    return 1;
}
Notice some invalid weapons ID's values were replaced by 1239.
Reply


Messages In This Thread
GetWeaponPickupCreatePos - by EmpireSk - 11.02.2019, 17:47
Re: GetWeaponPickupCreatePos - by EmpireSk - 11.02.2019, 19:00
Re: GetWeaponPickupCreatePos - by EmpireSk - 11.02.2019, 19:10
Re: GetWeaponPickupCreatePos - by Thundey - 11.02.2019, 19:18
Re: GetWeaponPickupCreatePos - by EmpireSk - 11.02.2019, 19:23
Re: GetWeaponPickupCreatePos - by EmpireSk - 12.02.2019, 12:18
Re: GetWeaponPickupCreatePos - by TheToretto - 12.02.2019, 17:46
Re: GetWeaponPickupCreatePos - by ComDuck - 13.02.2019, 10:22
Re: GetWeaponPickupCreatePos - by TheToretto - 13.02.2019, 11:46
Re: GetWeaponPickupCreatePos - by EmpireSk - 13.02.2019, 20:08
Re: GetWeaponPickupCreatePos - by EmpireSk - 15.02.2019, 23:25
Re: GetWeaponPickupCreatePos - by TheToretto - 16.02.2019, 13:21
Re: GetWeaponPickupCreatePos - by EmpireSk - 17.02.2019, 11:35
Re: GetWeaponPickupCreatePos - by J0sh... - 17.02.2019, 11:46
Re: GetWeaponPickupCreatePos - by Y_Less - 17.02.2019, 12:12
Re: GetWeaponPickupCreatePos - by TheToretto - 17.02.2019, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)