MENJAM ONO SERVER UNKNOW COMMAND I IZADJE MI OVO
D:\janko\BETA 0.4\BETA 0.4\Mod od 0 v0.2\Mod od 0 v0.2\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(180) : error 025: function heading differs from prototype
D:\janko\BETA 0.4\BETA 0.4\Mod od 0 v0.2\Mod od 0 v0.2\gamemodes\Mod.pwn(530) : error 025: function heading differs from prototype
Kako da resim ovo ?
618
pregleda
10
postova
24. Dec. 2019.
TO MI JE OVO STO MENJAM I TU MI IZLAZE WARNINZI
530 =public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (!success) return SCM (playerid, -1, "[ NEPOSTOJECA KOMANDA ]") ;
return 1;
}
530 =public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (!success) return SCM (playerid, -1, "[ NEPOSTOJECA KOMANDA ]") ;
return 1;
}
24. Dec. 2019.
resio sam prvo ne znam ni kako samo drugo nmg ne znam
error 025: function heading differs from prototype
public OnPlayerCommandText(playerid, cmdtext[], success)
{
ovde pokazuje da je taj error if(!success) return SCM(playerid,-1,"[ POGRESNA KOMANDA ]");
return 1;
}
error 025: function heading differs from prototype
public OnPlayerCommandText(playerid, cmdtext[], success)
{
ovde pokazuje da je taj error if(!success) return SCM(playerid,-1,"[ POGRESNA KOMANDA ]");
return 1;
}
24. Dec. 2019.
Markovicc wrote on December 24, 2019, 6:39 pm:
resio sam prvo ne znam ni kako samo drugo nmg ne znam
error 025: function heading differs from prototype
public OnPlayerCommandText(playerid, cmdtext[], success)
{
ovde pokazuje da je taj error if(!success) return SCM(playerid,-1,"[ POGRESNA KOMANDA ]");
return 1;
}
error 025: function heading differs from prototype
public OnPlayerCommandText(playerid, cmdtext[], success)
{
ovde pokazuje da je taj error if(!success) return SCM(playerid,-1,"[ POGRESNA KOMANDA ]");
return 1;
}
Koji PROCES komandi koristis😕
Former SA:MP server developer
24. Dec. 2019.
Taj callback nema taj parametar success: https://wiki.sa-mp.com/wiki/OnPlayerCommandText
Ako vec hoces za komande stavi pod callback koji ti sluzi za tvoj cmd procesor, verovatno OnPlayerCommandPerformed ne znam tacno koji koristis
Ako vec hoces za komande stavi pod callback koji ti sluzi za tvoj cmd procesor, verovatno OnPlayerCommandPerformed ne znam tacno koji koristis
25. Dec. 2019.
D:\janko\BETA 0.4\BETA 0.4\BETA 0.4\Mod od 0 v0.2\Mod od 0 v0.2\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(180) : error 025: function heading differs from prototype
D:\janko\BETA 0.4\BETA 0.4\BETA 0.4\Mod od 0 v0.2\Mod od 0 v0.2\gamemodes\Mod.pwn(449) : error 025: function heading differs from prototype
(449)public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, -1, "Pogresna komanda");
return 1;
}
Textdraw8 = TextDrawCreate(611.599975, 440.540008, "usebox");
TextDrawLetterSize(Textdraw8, 0.000000, 0.512960);
TextDrawTextSize(Textdraw8, 602.799987, 0.000000);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, 0);
TextDrawUseBox(Textdraw8, true);
TextDrawBoxColor(Textdraw8, 102);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 0);
(180)TextDrawFont(Textdraw8, 0);
D:\janko\BETA 0.4\BETA 0.4\BETA 0.4\Mod od 0 v0.2\Mod od 0 v0.2\gamemodes\Mod.pwn(449) : error 025: function heading differs from prototype
(449)public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, -1, "Pogresna komanda");
return 1;
}
Textdraw8 = TextDrawCreate(611.599975, 440.540008, "usebox");
TextDrawLetterSize(Textdraw8, 0.000000, 0.512960);
TextDrawTextSize(Textdraw8, 602.799987, 0.000000);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, 0);
TextDrawUseBox(Textdraw8, true);
TextDrawBoxColor(Textdraw8, 102);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 0);
(180)TextDrawFont(Textdraw8, 0);
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
