Dialog Problem (Maybe SAMP BUG) - 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 Problem (Maybe SAMP BUG) (
/showthread.php?tid=430052)
Dialog Problem (Maybe SAMP BUG) -
NeroX98 - 12.04.2013
Hi Scripterzzzzz !
I have a problem with the dialogs...
The (!response) code doesn't work:
pawn Код:
if(dialogid == KolaNaProdazba)
{
if(!response)
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F20000}GRESKA:{FFFFFF} Nemate dovolno pari.");
return 1;
}
// MY SCRIPT CODE :)
}
The part from
if(!response) to closing
bracket isn't calling ?!?!?!?!
That's happening with all dialogs
Re: Dialog Problem (Maybe SAMP BUG) -
Jstylezzz - 12.04.2013
I think you're doing something wrong somewhere.. The if(!response) works fine for me, never used brackets with it though.
Re: Dialog Problem (Maybe SAMP BUG) -
NeroX98 - 12.04.2013
Quote:
Originally Posted by Jstylezzz
I think you're doing something wrong somewhere.. The if(!response) works fine for me, never used brackets with it though.
|
I dont know... They worked before 2-3 days, now they don't work (all dialogs).
Maybe the problem is in the includes ?
Код:
#include <a_samp>
#include <a_npc>
#include <core>
#include <utils>
#include <float>
#include <time>
#include <file>
#include <morphinc>
#include <streamer>
#include <regex>
#include <Dini>
#include <sscanf2>
#include <YSI\y_timers>
#include <GetVehicleColor>
#include <a_angles>
#include <OPCP>
#include <mSelection>
#include <YSI\y_ini>
Re: Dialog Problem (Maybe SAMP BUG) -
MattyG - 12.04.2013
Try putting this in a stock:
pawn Код:
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F20000}GRESKA:{FFFFFF} Nemate dovolno pari.");
return 1;
}
Then change the line to:
pawn Код:
if(!response) return stocknamehere(parameters);
//Other code here
Edit:Ignore that ^^ Sorry.
Place the if(!response) outside of your if(dialogid == KolaNaProdazba), like just under OnDialogResponse.
Re: Dialog Problem (Maybe SAMP BUG) -
NeroX98 - 12.04.2013
Quote:
Originally Posted by MattyG
Try putting this in a stock:
pawn Код:
{ RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, COLOR_WHITE, "{F20000}GRESKA:{FFFFFF} Nemate dovolno pari."); return 1; }
Then change the line to:
pawn Код:
if(!response) return stocknamehere(parameters); //Other code here
Edit:Ignore that ^^ Sorry.
Place the if(!response) outside of your if(dialogid == KolaNaProdazba), like just under OnDialogResponse.
|
I fixed it
The problem was that i've already had !response outside from the dialogid, now works perfect

thanks