War System

Započeo Vuxoni, Jul 17, 2019, 22:10:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): U pitanju je War System x1.0.0 Dimijev
(20303) : error 055: start of function body without function header
(20304) : error 010: invalid function or declaration
(20308) : error 055: start of function body without function header
(20309) : error 010: invalid function or declaration

Deo skripte: [ pawn ]
forward GetPlayerLeader( playerid );
public GetPlayerLeader( playerid );
{
    return PlayerInfo[ playerid ][ pLider ];
}
forward GetPlayerMember( playerid );
public GetPlayerMember( playerid );
{
    return PlayerInfo[ playerid ][ pClan ];
}[ /pawn ]
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
Poslednja Izmena: Jul 22, 2019, 03:18:14 PRE PODNE od psychosomatic

forward GetPlayerLeader( playerid );
public GetPlayerLeader( playerid )>;<
{
    return PlayerInfo[ playerid ][ pLider ];
}
forward GetPlayerMember( playerid );
public GetPlayerMember( playerid )>;<
{
    return PlayerInfo[ playerid ][ pClan ];
}

Mora biti..
forward GetPlayerLeader( playerid );
public GetPlayerLeader( playerid )
{
    return PlayerInfo[ playerid ][ pLider ];
}
forward GetPlayerMember( playerid );
public GetPlayerMember( playerid )
{
    return PlayerInfo[ playerid ][ pClan ];
}

savjet, ne koristi djaba public za ovo mozes stock :D pravilnije je i optimizovanije ako ovako budes radio sve nece valjati vjeruj, ali po mom ne moras ni stock ni public ovo mozes sve uraditi unutar dijela gdje ti treba