Last Position Save Help.
#2

pawn Код:
public OnPlayerDisconnect(playerid)
{
    new Float:lastx, Float:lasty, Float:lastz, file[128], name[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, lastx, lasty, lastz);
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), file location thingies, name);
    dini_Create(file);
    dini_IntSet(file, "Last X", lastx);
    dini_IntSet(file, "Last Y", lasty);
    dini_IntSet(file, "Last Z", lastz);
    return 1;
}
Dont know if this is gonna work, but worth a try
Reply


Messages In This Thread
Last Position Save Help.[NOT SOLVED] - by ricardo178 - 19.06.2011, 14:27
Re: Last Position Save Help. - by Wesley221 - 19.06.2011, 14:32
Re: Last Position Save Help. - by Stigg - 19.06.2011, 14:37
Re: Last Position Save Help. - by ricardo178 - 19.06.2011, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)