fishing help
#1

is there a way to do the following make a list of fish names and then i can go / fish and it would produce one of them randomly
Reply
#2

say what?
Reply
#3

pawn Код:
new fishNames[][] = {
"Fish 1",
"Fish 2",
"Fish 3",
"Fish 4",
"Fish 5",
"Fish 6",
"Fish 7",
"Fish 8" // You can add as many fishes as you want.
};
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp(cmdtext, "/fish", true))
  {
    printf("Player %d got a %s!", playerid, fishNames[random(sizeof(fishNames))]);
    return 1;
  }
  return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)