Twenty Six Errors...
#7

OK, here's the example of my post so you can understand what i've posted before:

Correct example:
pawn Код:
forward myFunction(value1, value2); /* forwarded */

public myFunction(value1, value2) /* defined */
{
  new
      value3;
  value3 = value1 + value2;
  return value3;
}

public OnPlayerConnect(playerid)
{
  printf("%i", myFunction(5, 15)); /* used */
  return true;
}
Wrong example:
pawn Код:
forward myFunction(value1, value2); /* forwarded */

public OnPlayerConnect(playerid)
{
  printf("%i", myFunction(5, 15)); /* used but NOT defined anywhere in this example */
  return true;
}
Reply


Messages In This Thread
Twenty Six Errors... - by TheGtaLover - 22.12.2009, 00:12
Re: Twenty Six Errors... - by TheGtaLover - 22.12.2009, 00:45
Re: Twenty Six Errors... - by Zeromanster - 22.12.2009, 01:00
Re: Twenty Six Errors... - by TheGtaLover - 22.12.2009, 01:02
Re: Twenty Six Errors... - by Correlli - 22.12.2009, 01:03
Re: Twenty Six Errors... - by TheGtaLover - 22.12.2009, 01:05
Re: Twenty Six Errors... - by Correlli - 22.12.2009, 01:09
Re: Twenty Six Errors... - by TheGtaLover - 22.12.2009, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)