fishing help
#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


Messages In This Thread
fishing help - by sggassasin - 09.12.2009, 07:00
Re: fishing help - by ExoSanty - 09.12.2009, 08:23
Re: fishing help - by Finn - 09.12.2009, 08:29

Forum Jump:


Users browsing this thread: 1 Guest(s)