[pomoc]Dialog ne ocitava

Započeo Arnel_Bp
6. Apr. 2014. Zaključano
277
pregleda
3
postova
Arnel_Bp
5
Underboss
6. Apr. 2014.
Skripta koju koristim: moja od 0
Detaljan opis problema: Napravio sam dialog, jedan za lift i to radi, a drugi za oruzija, i kad stisnem F gde sam stavio koordinate pokazuje se dialog, ali kad kliknem na to nista mi ne daje kako bi trebalo da daje, kao sto sam stavio dolje
Dio skripte:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-1095.68213, -991.88574, 139.60983)|| IsPlayerInRangeOfPoint(playerid,3.0,-1095.68213, -991.88568, 191.42120)||IsPlayerInRangeOfPoint(playerid,3.0,-1095.68213, -991.88568, 234.07430)||IsPlayerInRangeOfPoint(playerid,3.0,-1095.68213, -991.88568, 257.70309))
ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Prizemlje\nDisko\nKancelarija\nKrov","Pokreni","Izadji");
}
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-1100.2013,-963.0530,233.1416))
ShowPlayerDialog(playerid,8236,DIALOG_STYLE_LIST,"{B8860B}Weapons","MP5\nM4\nSniper\nSawnoff\nTec9\nDesert Eagle\nArmor\nUzi\nCountry Rifle\nKnife\nChainsaw\nShotgun","Select","Cancel");
}
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == 8235)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,-1095.68213, -991.88574, 139.60983);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-1095.68213, -991.88568, 191.42120);
}
if(listitem == 2)
{
SetPlayerPos(playerid,-1095.68213, -991.88568, 234.07430);
}
if(listitem == 3)
{
SetPlayerPos(playerid,-1095.68213, -991.88568, 257.70309);
}
}
if(dialogid == 8236)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 29, 2500);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 31, 2500);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 34, 2500);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 26, 2500);
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 32, 2500);
}
if(listitem == 5)
{
GivePlayerWeapon(playerid, 24, 2500);
}
if(listitem == 6)
{
SetPlayerArmour(playerid, 100);
}
if(listitem == 7)
{
GivePlayerWeapon(playerid, 28, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 34, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 4, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 9, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 25, 2500);
}
}
}
return 1;
}


neka pomoc?

Hvala.
Hitman
5
Crime Lord
6. Apr. 2014.

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 8235)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,-1095.68213, -991.88574, 139.60983);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-1095.68213, -991.88568, 191.42120);
}
if(listitem == 2)
{
SetPlayerPos(playerid,-1095.68213, -991.88568, 234.07430);
}
if(listitem == 3)
{
SetPlayerPos(playerid,-1095.68213, -991.88568, 257.70309);
}
}
}
if(dialogid == 8236)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 29, 2500);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 31, 2500);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 34, 2500);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 26, 2500);
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 32, 2500);
}
if(listitem == 5)
{
GivePlayerWeapon(playerid, 24, 2500);
}
if(listitem == 6)
{
SetPlayerArmour(playerid, 100);
}
if(listitem == 7)
{
GivePlayerWeapon(playerid, 28, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 34, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 4, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 9, 2500);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 25, 2500);
}
}
}
return 1;
}

Arnel_Bp
5
Underboss
6. Apr. 2014.
Reseno. lock.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha