Deo skripte:
SPD(playerid, 2020, DIALOG_STYLE_LIST,"Pomoc","Pitanja\nReport","Odaberi","Odustani"); if(dialogid == 2020 && response)
{
switch(listitem)
{
case 0:
{
new str, count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(POMOC == 1)
{
format(str, sizeof(str), "%s[%d]: %s", Ime_Igraca(i), i, POMOC);
count++;
}
}
if(count == 0) return SendClientMessage(playerid, RBOJA2, "Trenutno nema pitanja!");
SPD(playerid, 2100, DIALOG_STYLE_LIST,"Pitanja", str,"Odaberi","Odustani"); if(dialogid == 2100 && response)
{
switch(listitem)
{
case 0:
{
new id;
new sfroleplaydialog2160;
format(sfroleplaydialog2160, sizeof(sfroleplaydialog2160), "%s%s", POMOC,sfroleplaydialog2160);
SPD(playerid, 2160, DIALOG_STYLE_INPUT,"Pitanje", sfroleplaydialog2160,"Odaberi","Odustani"); if(dialogid == 2160 && response)
if(response)
{
if(response)
{
if(PI != 0) return Error(playerid, "U zatvoru ste, ne mozete koristiti ovu komandu.");
if(PI >= 1)
{
if(AdminDuty == 0) return SCM(playerid,-1,"["SERVER_NAME"] Morate biti na Admin & Helper duznosti.");
new id;
new text;
if(sscanf(inputtext, "s",text)) return Koristi(playerid, "Unesite odgovor.");
if(!IsPlayerConnected(id)) return SCM(playerid, RBOJA2, "Taj igrac je offline!");
new string;
if(POMOC == 0)
{
SendClientMessage(playerid, RBOJA2, "{FFFFFF}Igrac nije poslao pitanje!");
return 1;
}
format(string,sizeof(string), " %s[%d] je odgovorio igracu %s[%d].", Ime_Igraca(playerid),playerid,Ime_Igraca(id),id);
StaffPoruka(0xEA18EDFF, string);
new string2;
format(string2,1620,"Pitanje: \n%s\n\nOdgovor: \n%s\n\n %s",POMOC,text,Ime_Igraca(playerid));
SPD(id, DIALOG_NONE, DIALOG_STYLE_MSGBOX,"Odgovor",string2,"Odaberi","");
POMOC = 0;
hPomoc = 0;
strmid(POMOC, "", 0, strlen(""), 255);
}
else return Ovlascenje(playerid);
return 1;Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem): //

