14.04.2012, 04:38
Take a look at https://sampforum.blast.hk/showthread.php?tid=318212
The way you would do this is like:
Then you can easily just chose a random fish name from this array by doing the following:
If you are looking to put more information about the fish, look into 3 dimensional arrays or 2 dimensional arrays with enums.
The way you would do this is like:
pawn Код:
new fishies[][]
{
"Fish One",
"Fish Two",
"Fish Three"
//.......
};
pawn Код:
new string[100];
format(string, sizeof(string), "You have caught a %s", fishies[random(sizeof(fishies))]);