[REQUEST]Position save[HELP]
#1

Yes i know "SEARCH" but ive searched and nothing ive also started to create my own but im having problems installing it on the modertopia scritp aka Godfather. IF anyone can help me with this code or make a new code that would be great!

Here is my code for some reason i can't install it on modertopia, i get error after error.....
Quote:

#include <dudb>
#include <Dini>

stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
return name;
}

public OnPlayerDisconnect(playerid, reason)
{
if (logged[playerid] == 1)
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
dUserSetINT(PlayerName(playerid)).("x",floatround( x));
dUserSetINT(PlayerName(playerid)).("y",floatround( y));
dUserSetINT(PlayerName(playerid)).("z",floatround( z));
logged[playerid] = 0;
return 1;
}

public OnPlayerSpawn(playerid)
{
if (dUserINT(PlayerName(playerid)).("x")!=0) {
SetPlayerPos(playerid,
float(dUserINT(PlayerName(playerid)).("x")),
float(dUserINT(PlayerName(playerid)).("y")),
float(dUserINT(PlayerName(playerid)).("z")));
}

return 1;
}

If anyone can help me or make a new one i would really appreciated!
Reply


Messages In This Thread
[REQUEST]Position save[HELP] - by _ASUS_ - 25.07.2009, 06:36
Re: [REQUEST]Position save[HELP] - by Calgon - 25.07.2009, 06:50

Forum Jump:


Users browsing this thread: 1 Guest(s)