SA-MP Forums Archive
[SOLVED] Include Problem. - 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: [SOLVED] Include Problem. (/showthread.php?tid=67930)



[SOLVED] Include Problem. - RyDeR` - 05.03.2009

SOLVED



Re: [HELP] Include Problem. - Nubotron - 05.03.2009

Don't you see a difference between:
pawn Код:
dini_Int(oyunism, "Money")
and:
pawn Код:
dini_Int(oyunism, "Position",SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]));
Use dini_IntSet, or something like that (i never used dini)

Also, You clearly can not do that. When you call SetPlayerPos it store coordinates into the 3 referenced arguments (PosX[playerid] etc)

So X value is stored into PosX[playerid], Y value in PosY[playerid] etc, and you have to save them separately, using dini_FloatSet (again, not sure).


Re: [HELP] Include Problem. - RyDeR` - 05.03.2009

Quote:
Originally Posted by Nubotron
Don't you see a difference between:
pawn Код:
dini_Int(oyunism, "Money")
and:
pawn Код:
dini_Int(oyunism, "Position",SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]));
Use dini_IntSet, or something like that (i never used dini)

Also, You clearly can not do that. When you call SetPlayerPos it store coordinates into the 3 referenced arguments (PosX[playerid] etc)

So X value is stored into PosX[playerid], Y value in PosY[playerid] etc, and you have to save them separately, using dini_FloatSet (again, not sure).
Hehe lol
Thanks buddy The problem has been SOLVED