Započeo SanelPandzic
•30. Jul 2019.Error u include should return a value
1,228
pregleda
10
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
7 / 250 XP
Početnik(0)
746
Postovi:
225
Teme:
Pridružio se:Dec. 2016
30. Jul 2019.
Problem(error/warning): Ubacio sam Nex anticheat imam 2 errora u include y_scriptinit. Ne mogu da ih rijesim nikako ako moze molim vas pomoc potreban mi je ovaj anticheat.
Deo skripte: ERRORI:
SKRIPTA:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Deo skripte: ERRORI:
C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(131) : warning 209: function "ac_OnGameModeInit" should return a value
C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(196) : warning 209: function "ac_OnGameModeExit" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.SKRIPTA:
public OnGameModeInit()
{
if (YSI_FILTERSCRIPT)
{
state _script_init_fix_state : true;
if (YSI_g_sScriptInitGM)
{
CallLocalFunction("ScriptInit_OnGameModeInit", "");
}
}
else
{
state _script_init_fix_state : false;
CallLocalFunction("ScriptInit_OnScriptInit", "");
//CallRemoteFunction("ScriptInit_OnAnyScriptInit", "");
CallLocalFunction("ScriptInit_OnGameModeInit", "");
//CallLocalFunction("ScriptInit_OnScriptLate", "");
CallLocalFunction("Text_SpecialInit", "");
}
131: }public OnGameModeExit()
{
if (YSI_FILTERSCRIPT)
{
if (YSI_g_sScriptExitGM)
{
CallLocalFunction("ScriptInit_OnGameModeExit", "");
}
}
else
{
CallLocalFunction("ScriptInit_OnScriptExit", "");
//CallRemoteFunction("ScriptInit_OnAnyScriptExit", "");
CallLocalFunction("ScriptInit_OnGameModeExit", "");
//CallLocalFunction("ScriptInit_OnScriptExitLate", "");
}
196: }Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
799
Postovi:
36
Teme:
Pridružio se:Jun 2018
30. Jul 2019.
public OnGameModeInit()
{
if (YSI_FILTERSCRIPT)
{
state _script_init_fix_state : true;
if (YSI_g_sScriptInitGM)
{
CallLocalFunction("ScriptInit_OnGameModeInit", "");
}
}
else
{
state _script_init_fix_state : false;
CallLocalFunction("ScriptInit_OnScriptInit", "");
//CallRemoteFunction("ScriptInit_OnAnyScriptInit", "");
CallLocalFunction("ScriptInit_OnGameModeInit", "");
//CallLocalFunction("ScriptInit_OnScriptLate", "");
CallLocalFunction("Text_SpecialInit", "");
}
return 1;
}
public OnGameModeExit()
{
if (YSI_FILTERSCRIPT)
{
if (YSI_g_sScriptExitGM)
{
CallLocalFunction("ScriptInit_OnGameModeExit", "");
}
}
else
{
CallLocalFunction("ScriptInit_OnScriptExit", "");
//CallRemoteFunction("ScriptInit_OnAnyScriptExit", "");
CallLocalFunction("ScriptInit_OnGameModeExit", "");
//CallLocalFunction("ScriptInit_OnScriptExitLate", "");
}
return 1;
}
Probaj vako.
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
7 / 250 XP
Početnik(0)
746
Postovi:
225
Teme:
Pridružio se:Dec. 2016
30. Jul 2019.
@mmlinaric sada drugi errori ovo warning 217: loose indentation mi pokazuje na retunr 1; koji si dodo u skriptu.
C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(131) : warning 217: loose indentation
C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(197) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
799
Postovi:
36
Teme:
Pridružio se:Jun 2018
30. Jul 2019.
SanelPandzic wrote on July 30, 2019, 7:55 pm:
@mmlinaric sada drugi errori ovo warning 217: loose indentation mi pokazuje na retunr 1; koji si dodo u skriptu.
C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(131) : warning 217: loose indentation
C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(197) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
E sunce mu jbm... Dodaj na vrh skripte i ispod includesa ovo:
#pragma tabsize 0
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
7 / 250 XP
Početnik(0)
746
Postovi:
225
Teme:
Pridružio se:Dec. 2016
30. Jul 2019.
@mmlinaric e brate izvini ali ovo sam rijesio stavio sam u include #pragma tabsize 0 i vise ne pokazuje to ali to je aman bio samo warning imam 2 errora opet ali sad mi ovo samo izbacuje izbacivalo je i prije ali ovo dole 4 sto bude postavio mislio sam da je to warning
evo:
SKRIPTA:
evo:
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3670) : warning 202: number of arguments does not match definition
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3688) : error 025: function heading differs from prototype
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3763) : warning 202: number of arguments does not match definition
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3781) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
SKRIPTA:
if(!ACInfo) ACInfo = true;
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerTakeDamage
#if defined OnPlayerWeaponShot
3670: return ac_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart);
#else
return ac_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid);
#endif
#else
return 0;
#endif
}#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerTakeDamage
#undef OnPlayerTakeDamage
#else
#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage ac_OnPlayerTakeDamage
#if defined ac_OnPlayerTakeDamage
#if defined OnPlayerWeaponShot
3688: forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#else
forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);
#endif
#endif
#endif #endif
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3763: return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid, bodypart);
#else
return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid);
#endif
#else
return 0;
#endif
}#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage ac_OnPlayerGiveDamage
#if defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3781: forward ac_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
#else
forward ac_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid);
#endif
#endif
#endifCrime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
799
Postovi:
36
Teme:
Pridružio se:Jun 2018
30. Jul 2019.
SanelPandzic wrote on July 30, 2019, 8:58 pm:
@mmlinaric e brate izvini ali ovo sam rijesio stavio sam u include #pragma tabsize 0 i vise ne pokazuje to ali to je aman bio samo warning imam 2 errora opet ali sad mi ovo samo izbacuje izbacivalo je i prije ali ovo dole 4 sto bude postavio mislio sam da je to warning
evo:
SKRIPTA:
evo:
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3670) : warning 202: number of arguments does not match definition
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3688) : error 025: function heading differs from prototype
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3763) : warning 202: number of arguments does not match definition
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3781) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
SKRIPTA:
if(!ACInfo) ACInfo = true;
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerTakeDamage
#if defined OnPlayerWeaponShot
3670: return ac_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart);
#else
return ac_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid);
#endif
#else
return 0;
#endif
}#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerTakeDamage
#undef OnPlayerTakeDamage
#else
#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage ac_OnPlayerTakeDamage
#if defined ac_OnPlayerTakeDamage
#if defined OnPlayerWeaponShot
3688: forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#else
forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);
#endif
#endif
#endif #endif
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3763: return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid, bodypart);
#else
return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid);
#endif
#else
return 0;
#endif
}#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage ac_OnPlayerGiveDamage
#if defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3781: forward ac_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
#else
forward ac_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid);
#endif
#endif
#endifPokazi mi funkciju ac_OnPlayerTakeDamage
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,514
Postovi:
58
Teme:
Pridružio se:Nov. 2016
30. Jul 2019.
mmlinaric wrote on July 30, 2019, 8:20 pm:
E sunce mu jbm... Dodaj na vrh skripte i ispod includesa ovo:
#pragma tabsize 0
#pragma tabsize 0
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
7 / 250 XP
Početnik(0)
746
Postovi:
225
Teme:
Pridružio se:Dec. 2016
30. Jul 2019.
@mmlinaric
OnPlayerTakeDemage sam rijesio tako sto sam na kraju include scriptinit stavio
Znaci resio sam TakeDemage jos GiveDemage ostalo
Pojavili su mi se sad errori sa givedemage evo errori
Funkcije dole imas a evo gdje mi se pokazuje error na liniji 3763
Ovdje je linija 3781 error
Evo OnPlayerGiveDemage Funkcija gore sam ti je napiso al evo opet
OnPlayerTakeDemage sam rijesio tako sto sam na kraju include scriptinit stavio
forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);Znaci resio sam TakeDemage jos GiveDemage ostalo
Pojavili su mi se sad errori sa givedemage evo errori
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3763) : warning 202: number of arguments does not match definition
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3781) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Funkcije dole imas a evo gdje mi se pokazuje error na liniji 3763
#endif
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3763: return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid, bodypart);
#else
return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid);
#endif
#else
return 0;
#endif
}Ovdje je linija 3781 error
Evo OnPlayerGiveDemage Funkcija gore sam ti je napiso al evo opet
#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage ac_OnPlayerGiveDamage
#if defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3781: FUNKCIJA : forward ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid, bodypart);
#else
FUNKCIJA: forward ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid);
#endif
#endif
#endifCrime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
799
Postovi:
36
Teme:
Pridružio se:Jun 2018
31. Jul 2019.
SanelPandzic wrote on July 30, 2019, 10:05 pm:
@mmlinaric
OnPlayerTakeDemage sam rijesio tako sto sam na kraju include scriptinit stavio
Znaci resio sam TakeDemage jos GiveDemage ostalo
Pojavili su mi se sad errori sa givedemage evo errori
Funkcije dole imas a evo gdje mi se pokazuje error na liniji 3763
Ovdje je linija 3781 error
Evo OnPlayerGiveDemage Funkcija gore sam ti je napiso al evo opet
OnPlayerTakeDemage sam rijesio tako sto sam na kraju include scriptinit stavio
forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);Znaci resio sam TakeDemage jos GiveDemage ostalo
Pojavili su mi se sad errori sa givedemage evo errori
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3763) : warning 202: number of arguments does not match definition
C:\Users\Sanel\Desktop\MCRP\pawno\include\nex-ac.inc(3781) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Funkcije dole imas a evo gdje mi se pokazuje error na liniji 3763
#endif
#if !defined _inc_y_hooks && !defined _INC_y_hooks\
&& defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3763: return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid, bodypart);
#else
return ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid);
#endif
#else
return 0;
#endif
}Ovdje je linija 3781 error
Evo OnPlayerGiveDemage Funkcija gore sam ti je napiso al evo opet
#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage ac_OnPlayerGiveDamage
#if defined ac_OnPlayerGiveDamage
#if defined OnPlayerWeaponShot
3781: FUNKCIJA : forward ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid, bodypart);
#else
FUNKCIJA: forward ac_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid);
#endif
#endif
#endifPokazi mi forward i public od ac_OnPlayerGiveDamage.
002 wrote on July 30, 2019, 9:37 pm:
Kako bi te ja mmmmm joj
@002 ne salji offtopic poruke
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
7 / 250 XP
Početnik(0)
746
Postovi:
225
Teme:
Pridružio se:Dec. 2016
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava