10.09.2013, 02:01
Bom pessoal eu tentei criar esse sistema sу que nгo consegui aqui estб stocks de salvamento:
Код:
stock SalvarPlayer(playerid) { if(DOF2_FileExists(ReturnFileUser(playerid))) { DOF2_SetInt(ReturnFileUser(playerid),"Level",GetPlayerScore(playerid)); DOF2_SetInt(ReturnFileUser(playerid),"Dinheiro",GetPlayerMoney(playerid)); DOF2_SetInt(ReturnFileUser(playerid),"Admin Level",PlayerDados[playerid][pAdmin]); DOF2_SetInt(ReturnFileUser(playerid),"Skin",GetPlayerSkin(playerid)); DOF2_SetInt(ReturnFileUser(playerid),"VIP", PlayerDados[playerid][pVIP]); DOF2_SetInt(ReturnFileUser(playerid),"Emprego", PlayerDados[playerid][pEmprego]); DOF2_SetInt(ReturnFileUser(playerid),"Organizaзгo", PlayerDados[playerid][pOrganizacao]); DOF2_SetInt(ReturnFileUser(playerid),"Cargo", PlayerDados[playerid][pCargo]); DOF2_SaveFile(); } } stock CarregarPlayer(playerid) { if(DOF2_FileExists(ReturnFileUser(playerid))) { SetPlayerScore(playerid, DOF2_GetInt(ReturnFileUser(playerid), "Level")); SetPlayerMoney(playerid, DOF2_GetInt(ReturnFileUser(playerid), "Dinheiro")); PlayerDados[playerid][pAdmin] = DOF2_GetInt(ReturnFileUser(playerid),"Admin Level"); SetPlayerSkin(playerid, DOF2_GetInt(ReturnFileUser(playerid),"Skin")); PlayerDados[playerid][pVIP] = DOF2_GetInt(ReturnFileUser(playerid),"VIP"); PlayerDados[playerid][pEmprego] = DOF2_GetInt(ReturnFileUser(playerid),"Emprego"); PlayerDados[playerid][pOrganizacao] = DOF2_GetInt(ReturnFileUser(playerid),"Organizaзгo"); PlayerDados[playerid][pCargo] = DOF2_GetInt(ReturnFileUser(playerid),"Cargo"); } }