Jump to content

Eroare Pawno


Google..r
 Share

Recommended Posts

Problema ta este ca atunci cand ai definit functia cu forward ai definit-o cu parametrii x si y (sa zicem), dar tu cand ai vrut sa faci callback-ul ai scris parametrul x si pe y l-ai scris altfel (ca exemplu).


Uite cum ar arata greseala ta sub forma practica:

 

Cum ai definit functia GetBetie:

forward GetBetie(playerid, beatlevel);

Si cum ai scris callback-ul:

public GetBetie(playerid, beat)
{
  return 1;
}

Corect era sa scrii callback-ul asa:

public GetBetie(playerid, beatlevel)
{ 
  return 1;
}
Link to comment
Share on other sites

E

 

 

Problema ta este ca atunci cand ai definit functia cu forward ai definit-o cu parametrii x si y (sa zicem), dar tu cand ai vrut sa faci callback-ul ai scris parametrul x si pe y l-ai scris altfel (ca exemplu).


Uite cum ar arata greseala ta sub forma practica:

 

Cum ai definit functia GetBetie:

forward GetBetie(playerid, beatlevel);

Si cum ai scris callback-ul:

public GetBetie(playerid, beat)
{
  return 1;
}

Corect era sa scrii callback-ul asa:

public GetBetie(playerid, beatlevel)
{ 
  return 1;
}

tot nu merge, alta rezolvare?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.