Maybe someone can tell me why can i do what i want?

Hello there guys im just looking for a pointer, im trying to find a way to say "when this function is/reach this value i want you to increment that this other variable" so that i can use that inside the constructor of the digitalWrite as a parameter.

int k ;
int q ;

void setup() {
  pinMode(k, OUTPUT);
  pinMode(q, OUTPUT);
}
void loop() {
  zzf();
}

void gf()
int a = zzf();//test the conditions of zzf() and store in new variable int a
{
  if (a == 80; a++)//if a reads 80 then increment a by 1
  {
    ei();//run the ei() function
  }
}

void ei()
int k = 3
{digitalWrite(k, a);}

void zzf() {
  for (f = 0; f < 80; f++) {
    analogWrite(q, f);
  }
}

this is are the errors that im getting:

sketch_feb29a:13: error: expected initializer before 'int'
sketch_feb29a:14: error: expected unqualified-id before '{' token
expected initializer before 'int'

You cannot declare variables(int a=zzf(); and int k=3;) after void ei() or void gf(). You MUST start defining it by curly braces '{'.

So either put the "int" statements inside the '{' and '}' or put them entirely outside depending on what you want.

Also ei() and gf() will not be run as you have just defined them, you did not use them in void setup or loop. The program will only run the setup and loop parts.

void gf()
int a = zzf();//test the conditions of zzf() and store in new variable int a
{

The comment should read "You can't do this here!".

  if (a == 80; a++)//if a reads 80 then increment a by 1

Have you ever seen an if statement that looks like that? The ; and ) positions are swapped.