Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Random List Selector
#11
still get same error it comes it says the line right after the weapons[RandomInt(weapons.size)]; it says the line under it but theres nothing there... should I put 2 ;; ?
(08-05-2011, 21:11)Scripts18 Wrote: still get same error it comes it says the line right after the weapons[RandomInt(weapons.size)]; it says the line under it but theres nothing there... should I put 2 ;; ?

nmv I mean over the weapons[]= [];
Reply

#12
thats your part? weapons[]

isnt it?
Reply

#13
(08-05-2011, 21:26)koil Wrote: thats your part? weapons[]

isnt it?

Im looking I get a different error now
Reply

#14
(08-05-2011, 20:59)koil Wrote: weapons = []; // Remove the '[]' after the variable name
weapons[0]= "shit_sp";
weapons[1]= "poo_sp";

weapons2 = [];
weapons2[0]= "test_sp"; // Start with an index of 0
weapons2[1]= "wazza_sp";

weapon = [];
weapon[0] = weapons[RandomInt(weapons.size)]; // Start with an index of 0
weapon[1] = weapons2[RandomInt(weapons2.size)];

//endweapon = undefined; <-- No need for this
endweapon = weapon[RandomInt(weapon.size)];

self giveweapon( endweapon );

There were a few problems in the code, which I commented and changed
Reply

#15
never done it before, only went off what he said works, so yeh, thanks..
Reply

#16
(08-06-2011, 09:44)koil Wrote: never done it before, only went off what he said works, so yeh, thanks..

Hum I fixed it nvm all
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 3,899 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,352 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help choose 2 random players?(1 each team) 26hz 6 4,341 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,744 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,434 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,101 07-22-2013, 09:47
Last Post: Yamato
  Help Server not in list, but people join 99IRock 8 6,699 07-17-2013, 21:26
Last Post: clacki
  List of models that can be spawned? (Looking for C4 model) akillj 5 4,457 06-27-2013, 13:35
Last Post: Yamato
  [Request] mw3 all map list ( aslo DLC) raminr63 5 14,266 06-18-2013, 19:50
Last Post: mn_acer1
Big Grin Killstreaks HUD list Puffiamo 9 9,368 06-18-2013, 18:42
Last Post: RaZ

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.