Dialog doesn't response - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog doesn't response (
/showthread.php?tid=435968)
Dialog doesn't response -
Luca12 - 09.05.2013
So when I type id of player in the dialog then nothing happens.
Re: Dialog doesn't response -
MrTinder - 09.05.2013
What's the dialog id and what it need to do ?
Re: Dialog doesn't response -
Luca12 - 09.05.2013
when i write someone's id then if it's oke then it give a extortion to my bizz if you know what I mean
but I write id and nothing happens. Thanks
Re: Dialog doesn't response -
Don_Cage - 09.05.2013
check line 3914, and you will notice the problem
No but seriously, we cant help if we dont see the code.
Re: Dialog doesn't response -
Luca12 - 09.05.2013
ok this is the code
if
Quote:
(dialogid == 1032)
{
if(response)
{
if(PlayerInfo[playerid][pPsiskey] == -1) return SCM(playerid, GRAD2, "(greska) Vi ne posjedujete Jfirmu!");
new id;
new i = PlayerInfo[playerid][pPsiskey];
if(sscanf(inputtext, "u", id)) return ShowPlayerDialog(playerid, 1032, DIALOG_STYLE_INPUT, "{00C0FF}Firma - Postavljanje reketa", "{FFFFFF}Upisite Korisnicko ime ili ID igraca kome zelite dati\nreket nad firmom:", "Postavi", "Nazad");
RPIme(playerid, hIme[0]);
RPIme(id, hIme[1]);
strmid(SBizzInfo[i][sbExtortion], hIme[1], 0, strlen(hIme[1]), 255);
SCMF(playerid, ZELENA, "* Dali ste igracu %s reket nad vasom firmom.", hIme[1]);
SCMF(id, ZELENA, "* %s vam je dao reket nad svojom firmom.",hIme[0]);
PlayerInfo[id][Reket] = 1;
UpdateSFirmu(i);
SpremiSFirmu(i);
}
}
|