Making this code efficiant
#2

pawn Код:
new Weapons[ ] = { ID0_Model, ID1_Model, ID2_Model, ID3_Model, ID4_Model, ID5_Model, ETC };
WepPickup[playerid] = CreateDynamicPickup(Weapons[GetPlayerWeapon( playerid )], 1, Pos[0]+random(3), Pos[1]+random(3), Pos[2])] = GetPlayerWeapon(playerid);
WepAmmo = Amount;
Код:
WepPickup[playerid]
- you should make it compatible with your variable
Код:
Weapons[GetPlayerWeapon( playerid )]
- what's in red you should have what you have at switch.
Reply


Messages In This Thread
Making this code efficiant - by Luis- - 10.06.2013, 21:19
Re: Making this code efficiant - by IstuntmanI - 10.06.2013, 21:22
Re: Making this code efficiant - by Luis- - 10.06.2013, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)