Saving Player Pos mysql
#2

This is with INI saving system

pawn Код:
public OnPlayerDisconnect( playerid, reason )
{
    GetPlayerPos( playerid, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ] );
    GetPlayerFacingAngle( playerid, Angle[ playerid ] );
   
    new INI:File = INI_Open( user_ini_file( playerid ) );
    INI_SetTag( File, "position" );
    INI_WriteFloat( File, "PositionX", PosX[ playerid ] );
    INI_WriteFloat( File, "PositionY", PosY[ playerid ] );
    INI_WriteFloat( File, "PositionZ", PosZ[ playerid ] );
    INI_WriteFloat( File, "Angle", Angle[ playerid ] );
    INI_WriteInt( File, "Interior", GetPlayerInterior( playerid ) );
    INI_WriteInt( File, "VirtualWorld", GetPlayerVirtualWorld( playerid ) );
    INI_Close( File );
    return ( 1 );
}
Try to somehow conver into mysql
Reply


Messages In This Thread
Saving Player Pos mysql - by Blademaster680 - 12.03.2014, 19:03
Re: Saving Player Pos mysql - by Lajko1 - 12.03.2014, 19:13
Re: Saving Player Pos mysql - by Matess - 12.03.2014, 19:16
Re: Saving Player Pos mysql - by Blademaster680 - 12.03.2014, 19:17
Re: Saving Player Pos mysql - by Matess - 12.03.2014, 19:22
Re: Saving Player Pos mysql - by Blademaster680 - 12.03.2014, 19:32
Re: Saving Player Pos mysql - by Matess - 12.03.2014, 19:47
Re: Saving Player Pos mysql - by Blademaster680 - 12.03.2014, 19:53

Forum Jump:


Users browsing this thread: 2 Guest(s)