SA-MP Forums Archive
Dini and Dialog help - 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: Dini and Dialog help (/showthread.php?tid=344695)



Dini and Dialog help - Youice - 22.05.2012

Hello,

I have made a dini code but I don't know why Im receiving errors:

CODE:

Код:
dini_FloatSet(file, "PlayerPos:x", PlayerInfo[playerid][pFloat:x] = 832.2277);
dini_FloatSet(file, "PlayerPos:y", PlayerInfo[playerid][pFloat:y] = -2065.9692);
dini_FloatSet(file, "PlayerPos:z", PlayerInfo[playerid][pFloat:z] = 12.8672);
ERROR:

Код:
warning 213: tag mismatch
for this 3 only

and for Dialogs
CODE:

Код:
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD
ERROR:

Код:
Undefined DIALOG_STYLE_PASSWORD
LOL?

Thank You!


Re: Dini and Dialog help - MP2 - 22.05.2012

Make sure you're using the 0.3d/0.3e includes. You may have multiple pawno folders.


Re: Dini and Dialog help - JaKe Elite - 22.05.2012

you doing it wrong

pawn Код:
dini_FloatSet(file, "PlayerPos:x", PlayerInfo[playerid][pFloat:x] = 832.2277);
dini_FloatSet(file, "PlayerPos:y", PlayerInfo[playerid][pFloat:y] = -2065.9692);
dini_FloatSet(file, "PlayerPos:z", PlayerInfo[playerid][pFloat:z] = 12.8672);
wrong.

it must be

pawn Код:
dini_FloatSet(file, "PlayerPos:x", PlayerInfo[playerid][x] = 832.2277);
dini_FloatSet(file, "PlayerPos:y", PlayerInfo[playerid][y] = -2065.9692);
dini_FloatSet(file, "PlayerPos:z", PlayerInfo[playerid][z] = 12.8672);
edit your enum and find

pawn Код:
x,
y,
z,
make

pawn Код:
x,
y,
z,
into

pawn Код:
Float:x,
Float:y,
Float:z,



Re: Dini and Dialog help - Youice - 22.05.2012

I have it already, IK. Thank you : ), Thank you all and mike you are right