Google..r Posted February 17, 2017 Share Posted February 17, 2017 C:\Users\user\Desktop\ASA\Gamemode\gamemodes\mozzila.pwn(51377) : error 025: function heading differs from prototype E GM Buha v3 versiunea care merge si localhost Quote Link to comment Share on other sites More sharing options...
Kingsley Posted February 17, 2017 Share Posted February 17, 2017 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; } Quote Link to comment Share on other sites More sharing options...
Google..r Posted February 17, 2017 Author Share Posted February 17, 2017 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? Quote Link to comment Share on other sites More sharing options...
Kingsley Posted February 17, 2017 Share Posted February 17, 2017 E tot nu merge, alta rezolvare? Dar care e functia cu pricina? Da si forward. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.