Dialog has no effect?
#1

Fixed.
Reply
#2

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

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

Does it send you the correct message?
Reply
#5

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

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

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

if(GetPlayerPCash(playerid) >= 1000)

Under listitem==8


You need to add a '{'
Reply
#8

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)