SA-MP Forums Archive
Dialog has no effect? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog has no effect? (/showthread.php?tid=198739)



Dialog has no effect? - Darklom - 13.12.2010

Fixed.


Re: Dialog has no effect? - Retardedwolf - 13.12.2010

Try some debugging or your script may use a script sided weapons, money and armor.


Re: Dialog has no effect? - Darklom - 13.12.2010

Uh it's my first scripting attempt, that doesn't really help me :/


Re: Dialog has no effect? - Retardedwolf - 13.12.2010

Does it send you the correct message?


Re: Dialog has no effect? - VirSpectorX - 13.12.2010

Show the part of the script where there is ShowPlayerDialog for this.
And also, the #define DARKWEPS


Re: Dialog has no effect? - admantis - 13.12.2010

i think
pawn Код:
if(GetPlayerPCash(playerid) >= 2000)
should be
pawn Код:
if(GetPlayerPCash(playerid) > 2000)
and in the tear gases, you missed a bracket


Re: Dialog has no effect? - Joe Staff - 13.12.2010

The only thing wrong is you're missing a bracket right after

if(GetPlayerPCash(playerid) >= 1000)

Under listitem==8


You need to add a '{'


Re: Dialog has no effect? - SuperS82 - 13.12.2010

Proper Indentation... Then you will see the missing open/close backets.


Re: Dialog has no effect? - BMUK - 13.12.2010

Quote:
Originally Posted by admantis
Посмотреть сообщение
i think
pawn Код:
if(GetPlayerPCash(playerid) >= 2000)
should be
pawn Код:
if(GetPlayerPCash(playerid) > 2000)
and in the tear gases, you missed a bracket
>= 2000 means he must have atleast 2000 to buy it

> 2000 means he must have atleast 2001 to buy it

So the >= is probably correct


Re: Dialog has no effect? - Darklom - 13.12.2010

Quote:
Originally Posted by SuperS82
Посмотреть сообщение
Proper Indentation... Then you will see the missing open/close backets.
Well the missing bracket wasn't the problem, my second dialog just won't get weapons or take money.