Skripta koju koristim: Ravens
Detaljan opis problema: 7 erora evo slika http://prntscr.com/5klfa5
Dio skripte://
pod OnPlayerDeath stavio sam ovako
ubioIgraca[killerid] = playerid;
ShowPlayerDialog(killerid, DIALOG_RAZLOG_K, DIALOG_STYLE_INPUT, "Razlog", "Unesite razlog ubistva", "U redu" "Odustani");
///define
#define DIALOG_RAZLOG_K 25633
new ubioIgraca[MAX_PLAYERS];
//dialogresponse
if(dialogid == DIALOG_RAZLOG_K)
{
if(!strlen(inputtext)) return ShowPlayerDialog(killerid, DIALOG_RAZLOG_K, DIALOG_STYLE_INPUT, "Razlog", "Unesite razlog ubistva", "U redu" "Odustani");
new kName[24], pName[24];
GetPlayerName(ubioIgraca[playerid], pName, 24);
GetPlayerName(playerid, kName, 24);
format(string, sizeof(string), "Igrac %s je ubio igraca %s, razlog: %s", kName, pName, inputtext);
foreach(Player, a)
{
if(IsPlayerAdmin(a)) SendClientMessage(a, -1, string);
}
return true;
}
ovako sam odradio i izbaciju mi erore :D warnove POMOC
Jesi ceo ovaj kod ovako kao sto kazes nabaco u public OnPlayerDeath ?
Ako jesi onda si svasta ovde nabaco a nekim stvarima nije mesto ovde gde si stavio. Mada koliko mogu primetiti ti ustvari hoces da kada igrac pogide da to ispise adminima koliko mogu ovde primetiti. To ces vrlo jednostavno uraditi a sve sto je potrebno jeste da u public OnPlayerDeath dodas samo ovo.
format(string, sizeof(string), "Igrac %s je ubio igraca %s, razlog: %s", GetName(killerid), GetName(playerid), reason);
foreach (new a : Player)
{
if(IsPlayerAdmin(a)) SendClientMessage(a, -1, string);
}
Ako nemas GetName dodaj negde na kraj scripte
stock GetName(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
return pName;
}