Random fish names
#4

This is why the index would always be 0:
pawn Код:
new rFish = random(sizeof(rFish));
Instead do:
pawn Код:
new rFish = random(sizeof(FishName));
Also for the line snap, you can just check if rFish is 0 (or the index if you add more line snaps) instead of comparing the string.
Reply


Messages In This Thread
Random fish names - by DevBe - 30.10.2017, 13:47
Re: Random fish names - by Kyle - 30.10.2017, 14:05
Re: Random fish names - by DevBe - 30.10.2017, 14:22
Re: Random fish names - by Abagail - 30.10.2017, 14:33
Re: Random fish names - by DevBe - 30.10.2017, 14:37
Re: Random fish names - by Kyle - 30.10.2017, 14:53
Re: Random fish names - by DevBe - 30.10.2017, 14:54
Re: Random fish names - by Kyle - 30.10.2017, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)