[FilterScript] Drive-by Weapon Switch
#10

Quote:
Originally Posted by Cypress
Посмотреть сообщение
Not bad. However I have one question, 'What does the following thing do?'.

pawn Код:
new pweapon[MAX_PLAYERS] = {0,...};

//What does this? {0,...}
I never used this so I'm wondering what it is.
Yup, NaS's answer is right.

using this for example:
pawn Код:
new array[3] = {0,1,2};
setting the array at start of the script, to 0 on the first cell, 1 on the second, etc.
using {0,...} will set all of the cells to 0.
Reply


Messages In This Thread
Drive-by Weapon Switch - by Amit_B - 12.09.2011, 16:08
Re: Drive-by Weapon Switch - by iMonk3y - 12.09.2011, 16:47
Re: Drive-by Weapon Switch - by Kaperstone - 12.09.2011, 17:43
Re: Drive-by Weapon Switch - by _DownLoaD_ - 12.09.2011, 18:01
Re: Drive-by Weapon Switch - by Aleron - 12.09.2011, 18:04
Re: Drive-by Weapon Switch - by Kaperstone - 12.09.2011, 18:14
Re: Drive-by Weapon Switch - by Amit_B - 12.09.2011, 18:16
Re: Drive-by Weapon Switch - by Cypress - 12.09.2011, 19:36
AW: Drive-by Weapon Switch - by NaS - 12.09.2011, 20:00
Re: Drive-by Weapon Switch - by Amit_B - 12.09.2011, 20:39

Forum Jump:


Users browsing this thread: 2 Guest(s)