Q: Fishing System [Using Arrays]
#1

Hey Lads,


Um, I'm Wondering How I'd Go About Making a Fishing System Using Arrays.
Basically, I'm Going to be Using Different Bait to Catch Different Fish, (Witch i Think is Possible)

Now,
I Was Going to Use Cases, But It's Just Looks a Mess, But Then Again, Someone can Tell me Use Arrays or Cases.

Basically, i Want Something Like
Lets Say We Create 2 Seperate Arrays?

Код:
enum fPrawnsBait //Bait Name (These Fish Can Only Be Caught Using This Bait)
{
	{"Yellowtail"}, //Fish Names
	{"Mungrove"}, //Fish Names
};
Код:
enum fYabbiesBait //Bait Name (These Fish Can Only Be Caught Using This Bait)
{
	{"Blackfin"}, //Fish Names
	{"MurrayCOD"}, //Fish Names
};
Now I Think Thats Right Their, But Correct me if I'm Wrong However / Point me to the Right Direction.
But However, How Would i Make It So If The Fella has Yabbies as his Bait, he Can only Catch the Fish in That Array?
Then Using a String to Show the Name of the Fish, e.g You've Caught a %s

Код:
if(FishingBaitYabbies[playerid] => 1)
{
//Only Catch Fish That Can Be Caught With Yabbies Using Our Array? I Dunno if This is Correct, Done in My Head.
}
Cheers, Sorry its Story Length xD
But to Whoever can Help, Thanks Alot.


Ezay
\o/
Reply


Messages In This Thread
Q: Fishing System [Using Arrays] - by Ezay - 14.04.2012, 02:31
Re: Q: Fishing System [Using Arrays] - by [HiC]TheKiller - 14.04.2012, 04:38
Re : Q: Fishing System [Using Arrays] - by Islam_Gerland_99 - 09.07.2012, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)