Detaljan opis problema:PoÄeo sam stavljati komandu /ah u dialog ali sam poÄeo dobivati neke errore i nisam je joÅ¡ cijelu dovrÅ¡io ali sam negdje pogrijeÅ¡io i dobio errore ako itko može pomoći...
Dio skripte:
OnDialogResponse:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == ahdialog)
{
switch(listitem)
{
case 0:
{
if (PlayerInfo >= 1)
{
SendClientMessage(playerid, COLOR_GREEN, "================================================================");
SendClientMessage(playerid, COLOR_GRAD1, "| ADMIN DUZNOST | /aon /aoff ");
SendClientMessage(playerid, COLOR_GRAD1, "| ADMIN CHAT | /ao, /a(dmin) chat, /cnn");
SendClientMessage(playerid, COLOR_GRAD1, "| ADMIN KOMANDE | /check, /setint, /goto, /ubij, /respawncar, /headovi, /sethp, /setarmor");
SendClientMessage(playerid, COLOR_GRAD1, "| ADMIN KOMANDE | /kick, /upozori, /ban, /utisaj, /prison, /jail");
SendClientMessage(playerid, COLOR_GREEN, "================================================================");
return 1;
}
case 1:
{
if (PlayerInfo >= 2)
{
SendClientMessage(playerid, COLOR_GREEN, "================================================================");
SendClientMessage(playerid, COLOR_GRAD2,"| ADMIN | /freeze, /unfreeze, /bigears, /recon, /setteam, /cnn, /skydive");
SendClientMessage(playerid, COLOR_GREEN, "================================================================");
return 1;
}
case 2:
{
if (PlayerInfo >= 3)
{
SendClientMessage(playerid, COLOR_GREEN, "================================================================");
SendClientMessage(playerid, COLOR_GRAD3,"| ADMIN | /noooc, /fourdive, /sp, /endround, /mark, /gotomark, /gotols, /gotolv, /gotosf");
SendClientMessage(playerid, COLOR_GRAD4,"| ADMIN | /getcar, /gotocar, /oldcar, /gethere, /setvirtual");
SendClientMessage(playerid, COLOR_GREEN, "================================================================");
return 1;
}
}
}
}Komanda:
COMMAND:ah(playerid, params[])
{
ShowPlayerDialog(playerid, ahdialog, DIALOG_STYLE_LIST, "Admin Panel", "Admin Level 1\nAdmin Level 2\nAdmin Level 3\nAdmin Level 4\nAdmin Level 5\nHead Admin", "Odaberi", "Izadji");
return 1;
}Define:
//------------------------------ Dialozi maximalni ID dialogu je 32767 ------------------------------
#define ahdialog 10010Neke slike/video za lakse dobivanje pomoci(neobavezno)://
