Random number, then pick string out of an array depending on number?
#3

never thought much about that but didnt you forgot the commas at your second pawn code ?

And that are for sure only two dimensions XD
pawn Code:
new Names[][] =
{
    {'M', 'i', 'c', 'h', 'a', 'e', 'l'},
    {'J', 'o', 'h', 'n'},
    {'K', 'a', 't', 'e', 'y'},
    {'R', 'i', 'c', 'h', 'a', 'r', 'd'},
    {'R', 'o', 'b', 'b', 'i', 'n'}
};
Reply


Messages In This Thread
Random number, then pick string out of an array depending on number? - by Robbin237 - 26.02.2009, 14:06
Re: Random number, then pick string out of an array depending on number? - by Nero_3D - 26.02.2009, 15:11
Re: Random number, then pick string out of an array depending on number? - by Nero_3D - 26.02.2009, 18:26

Forum Jump:


Users browsing this thread: 2 Guest(s)