Detaljan opis problema: Ocu da dodam opremu, a neznam kako pa sam ja to na svoju ruku uradio pa je to ispalo ovako(dole u kodu) . E sad kad udjem IG kucam /akcija pa /equip e sad kad kucam /equip pojavi mi se dijalog i ponudi mi sta da biram ja to izaberem i ne pojavljuje mi se nista,cak ni kad . Molim za pomoc
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):
CMD:akcija(playerid, params[]) // By DraGoN
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 19 || PlayerInfo == 19 || PlayerInfo == 6 || PlayerInfo == 6 || PlayerInfo == 16 || PlayerInfo == 16
|| PlayerInfo == 15 || PlayerInfo == 15 || PlayerInfo == 21 || PlayerInfo == 21 || PlayerInfo == 5 || PlayerInfo == 5
|| PlayerInfo == 14 || PlayerInfo == 14 || PlayerInfo == 24 || PlayerInfo == 24 || PlayerInfo == 13 || PlayerInfo == 13
|| PlayerInfo == 20 || PlayerInfo == 20 || PlayerInfo == 25 || PlayerInfo == 25 || PlayerInfo == 7 || PlayerInfo == 7)
{
if(NaAkciji == 1)
{
NaAkciji = 0;
SafeResetPlayerWeapons(playerid);
SCM(playerid,COLOR_GREY,"** Niste vise na akciji.");
}
else if(NaAkciji == 0)
{
NaAkciji = 1;
SCM(playerid,COLOR_GREY,"** Sada mozete uzeti opremu.");
}
}
}
return 1;
}
CMD:equip(playerid, params[]) // By DraGoN
{
if(IsPlayerConnected(playerid))
{
new string,sendername;
GetPlayerName(playerid, sendername,sizeof(sendername));
if((PlayerInfo == 19 || PlayerInfo == 19) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101)
|| (PlayerInfo == 6 || PlayerInfo == 6) && IsPlayerInRangeOfPoint(playerid, 2,1271.4515,-796.2720,1084.1719)
|| (PlayerInfo == 15 || PlayerInfo == 15) && IsPlayerInRangeOfPoint(playerid, 2,2556.5193,-1305.2424,1060.9844)
|| (PlayerInfo == 21 || PlayerInfo == 21) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
|| (PlayerInfo == 14 || PlayerInfo == 14) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
|| (PlayerInfo == 13 || PlayerInfo == 13) && IsPlayerInRangeOfPoint(playerid, 2,677.8940,-462.3289,-25.6172)
|| (PlayerInfo == 16 || PlayerInfo == 16) && IsPlayerInRangeOfPoint(playerid, 2,441.7570,1411.0492,1084.3047)
|| (PlayerInfo == 5 || PlayerInfo == 5) && IsPlayerInRangeOfPoint(playerid, 2,2375.0317,-1127.6121,1050.8750)
|| (PlayerInfo == 24 || PlayerInfo == 24) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101))
{
if(NaAkciji == 1)
{
new sapdequip[] = "1\tAK47\n2\tMP5\n3\tAK47 i MP5\n4\tCombat\n5\tArmor";
ShowPlayerDialog(playerid,53,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
return 1;
}
else
{
SCM(playerid,COLOR_GREY,"** Morate kucajti /akcija da bi uzeli oruzje.");
return 1;
}
}
if((PlayerInfo == 25 || PlayerInfo == 25) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101)
|| (PlayerInfo == 20 || PlayerInfo == 20) && IsPlayerInRangeOfPoint(playerid, 2,267.1542,1294.8147,1080.2578)
|| (PlayerInfo == 13 || PlayerInfo == 13) && IsPlayerInRangeOfPoint(playerid, 2,677.8940,-462.3289,-25.6172)
|| (PlayerInfo == 16 || PlayerInfo == 16) && IsPlayerInRangeOfPoint(playerid, 2,441.7570,1411.0492,1084.3047)
|| (PlayerInfo == 5 || PlayerInfo == 5) && IsPlayerInRangeOfPoint(playerid, 2,2375.0317,-1127.6121,1050.8750))
{
if(NaAkciji == 1)
{
if((PlayerInfo == 20 || PlayerInfo == 20))
{
new sapdequip[] = "1\tM4\n2\tMP5\n3\tM4 i MP5";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
else if((PlayerInfo == 25 || PlayerInfo == 25))
{
new sapdequip[] = "1\tM4\n2\tMP5\n3\tM4 i MP5\n4\tArmor";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
else if((PlayerInfo == 16 || PlayerInfo == 16))
{
new sapdequip[] = "1\tM4\n2\tMP5\n3\tM4 i MP5\n4\tArmor";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
return 1;
}
else
{
SCM(playerid,COLOR_GREY,"** Morate kucajti /akcija da bi uzeli oruzje.");
return 1;
}
}
if(PlayerInfo == 0)
{
SCM(playerid,COLOR_GREY,"** Niste na duznosti (/duty)!");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 6, 257.1108,78.0250,1003.6406))//SAPD Lockers
{
if(PlayerInfo != 1 && PlayerInfo != 1 && PlayerInfo != 22 && PlayerInfo != 22)
{
SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the SAPD");
return 1;
}
new sapdequip[] = "1\tCadet Patrol\n2\tOfficer Patrol\n3\tDetektiv Patrol\n4\tMotorcyclist Patrol\n5\tStandard SWAT\n6\tMedium SWAT\n7\tHeavy SWAT\n8\tSharpshooter SWAT\n9\tArmour+Health\n10\tCeremonial Uniform\n11\tDefault\n12\tHigher Ranked";
ShowPlayerDialog(playerid,50,DIALOG_STYLE_LIST,"List of Equips:",sapdequip,"Izaberite","Otkazi");
SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
}
else if(IsPlayerInRangeOfPoint(playerid, 6, 223.6328,186.8251,1003.0313))//FBI Lockers (Library)
{
if(PlayerInfo != 2 && PlayerInfo != 2)
{
SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the FBI");
return 1;
}
new fbiequip[] = "1\tCadet Equipment\n2\tAgent Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Tactical\n6\tMedium Tactical\n7\tHeavy Tactical\n8\tSharpshooter Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"List of Equips:",fbiequip,"Izaberite","Otkazi");
SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
}
else if(IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188))//Army Lockers
{
if(PlayerInfo != 3 && PlayerInfo != 3)
{
SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the Army");
return 1;
}
new armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tSniper Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
ShowPlayerDialog(playerid,52,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Izaberite","Otkazi");
SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /equip %d",d,m,y,h,mi,s,sendername, params);
CommandLog(string);
}
return 1;
}treba mi ovo doleee:
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}Moze li neko da mi uradi ja ne znam?
