SA-MP Forums Archive
[Help]Question[Please] - 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: [Help]Question[Please] (/showthread.php?tid=339267)



[Help]Question[Please] - Mento - 02.05.2012

PLEASE READ, PLEASE READ, PLEASE READ

Hello for dynamic things, houses, businesses, checkpoints, whatever... How do they work, I tried to understand it, but it doesn't make any sense to me, please explain this:

For example, you have something like this:
pawn Код:
CMD:saveplayerpos(playerid, params[])
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    return 1;
}
How do I save the player's x, y, z coords in a single global file, example if me and you do it, we both have our coords in one file, not more then one... So I type /saveplayerpos and then it is saved in playerposes file, and if you type it it is also saved in playerposes file, how do I do this? And how does the pawn not replace my coords with yours?


Re: [Help]Question[Please] - Jstylezzz - 02.05.2012

Try to use one of these..

I prefer Y_INI but you can choose:

Saving Position with DINI
Y_INI saving system


Re: [Help]Question[Please] - Mento - 03.05.2012

But that isn't what I am looking for, like I said I don't want to make file for each player, I want everyone in a single file, like one of those dynamic systems, except only for pos...