[HELP] Saving player pos
#1

Hey, I'm back again..
SA-MP scripting is like a drug

I'm tryin' to save the player pos on logout so OnPlayerDisconnect I have a "SavePlayerStats".
Offcourse..

and here's the problem I have:

pawn Код:
public SavePlayerStats(playerid)
{
    GetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
    dUserSetINT(PlayerName(playerid)).("x", PlayerInfo[playerid][pPosX]);
    dUserSetINT(PlayerName(playerid)).("y", PlayerInfo[playerid][pPosY]);
    dUserSetINT(PlayerName(playerid)).("z", PlayerInfo[playerid][pPosZ]);
    return 1;
}
When I compile I get "Tag Mismatch" on the last three lines...
Can someone tell me whats wrong please ?

Don't You dare tell me to search I know how to do and I couldn't find anything
Reply


Messages In This Thread
[HELP] Saving player pos - by Lorrden - 14.10.2009, 14:22
Re: [HELP] Saving player pos - by Correlli - 14.10.2009, 14:28
Re: [HELP] Saving player pos - by Lorrden - 14.10.2009, 14:37
Re: [HELP] Saving player pos - by Correlli - 14.10.2009, 14:44

Forum Jump:


Users browsing this thread: 2 Guest(s)