Dialog Problem (Maybe SAMP BUG)
#1

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
Reply
#2

I think you're doing something wrong somewhere.. The if(!response) works fine for me, never used brackets with it though.
Reply
#3

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>
Reply
#4

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.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)