I have to different AWP Unlocks.
These are the lines
ItemIndex = gxm_register_gun("AWM Wolf Rider", 5200, 21, 1, 0, "Awp")
ItemIndex = gxm_register_gun("Super Awp", 1250, 0, 0, 0, "Awp")
or maybe it is this
public fwPrecachePost(type, const name[])
IDK ........
But still i can upgrade both Unlocks, so what is wrong in this? i dont understand it. Can anyone help?
gxm_shop.inc
Code:
#if defined _gxm_shop_included
#endinput
#endif
#define _gxm_shop_included
native gxm_register_gun( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_item( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_pistol( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_knife( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_grenade( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
forward gxm_gun_selected( Player, ItemIndex);
forward gxm_item_selected( Player, ItemIndex);
forward gxm_pistol_selected( Player, ItemIndex);
forward gxm_knife_selected( Player, ItemIndex);
forward gxm_grenade_selected( Player, ItemIndex);
Code:
From an old history with him maybe it helps anyone and help me...
static bool:Knife[33] is this the line which block rest of unlocks when i used one knife unlock that it block rest of knife unlocks?
19:57
const Type[ ] = 0); i dont find anything about this google didnt found it too. So i checked other unlocks from u but didnt found anything about it. so can u maybe explain me this .. :/
Karolis, 10:13
write some string in that parameter place and you will see
10:15
i did
const Type[ ] = 0);
Error: Expected token: "=", but found "[" on line 22
Karolis, 10:17
Sorry, it will take too long to explain. Put the string the same as other parameters like name, description etc. why are you writing "const type[]..." ??
10:17
const type was showing in gxm_shop.inc
Karolis, 10:18
just type a string
but can u say me maybe which is for block upgrades like when i have ak47 upgraded that i cant upgrade theother ones ak47 ?! its curiously xD
Karolis, 10:28
there is an extra parameter when creating new item, to set a string of the unlock. If the name matches, then other item with that name won't be available