Djons
Новичок
Помогите, не сохраняет ган при выходе/реконекте.
Вот код:
и в public OnPlayerDisconnect(playerid, reason)
А по идеи должно все сохранять. Помогите.
Вот код:
PHP:
stock SaveWeapon(playerid)
{
GetPlayerWeaponData(playerid,0,PlayerInfo[playerid][pSlot][0],PlayerInfo[playerid][pSlotammo][0]);
GetPlayerWeaponData(playerid,1,PlayerInfo[playerid][pSlot][1],PlayerInfo[playerid][pSlotammo][1]);
GetPlayerWeaponData(playerid,2,PlayerInfo[playerid][pSlot][2],PlayerInfo[playerid][pSlotammo][2]);
GetPlayerWeaponData(playerid,3,PlayerInfo[playerid][pSlot][3],PlayerInfo[playerid][pSlotammo][3]);
GetPlayerWeaponData(playerid,4,PlayerInfo[playerid][pSlot][4],PlayerInfo[playerid][pSlotammo][4]);
GetPlayerWeaponData(playerid,5,PlayerInfo[playerid][pSlot][5],PlayerInfo[playerid][pSlotammo][5]);
GetPlayerWeaponData(playerid,6,PlayerInfo[playerid][pSlot][6],PlayerInfo[playerid][pSlotammo][6]);
GetPlayerWeaponData(playerid,7,PlayerInfo[playerid][pSlot][7],PlayerInfo[playerid][pSlotammo][7]);
GetPlayerWeaponData(playerid,8,PlayerInfo[playerid][pSlot][8],PlayerInfo[playerid][pSlotammo][8]);
GetPlayerWeaponData(playerid,9,PlayerInfo[playerid][pSlot][9],PlayerInfo[playerid][pSlotammo][9]);
GetPlayerWeaponData(playerid,10,PlayerInfo[playerid][pSlot][10],PlayerInfo[playerid][pSlotammo][10]);
GetPlayerWeaponData(playerid,11,PlayerInfo[playerid][pSlot][11],PlayerInfo[playerid][pSlotammo][11]);
GetPlayerWeaponData(playerid,12,PlayerInfo[playerid][pSlot][12],PlayerInfo[playerid][pSlotammo][12]);
}
PHP:
SaveWeapon(playerid);
