16.07.2017, 16:56
nada ainda... cria as linhas matou/morreu! so que nao salva as mortes e provavelmente os kills tbm nao!"nao testei o kil"!
meu sistema ta assim atualmente:
meu sistema ta assim atualmente:
Quote:
enum Playerinfos { Matou, Morreu }; new pInfo2[MAX_PLAYERS][Playerinfos]; playerdeath.. pInfo2[killerid][Matou]++; pInfo2[playerid][Morreu]++; stock SavePlayer(playerid) { if( DOF2_FileExists( GetPlayerArquivo( playerid ) ) ) { DOF2_CreateFile(GetPlayerArquivo(playerid)); //DOF2_SetInt( GetPlayerArquivo( playerid ), "Skin", Player[ playerid ][ Skin ] ); DOF2_SetInt( GetPlayerArquivo( playerid ), "Score", Player[ playerid ][ Score ] ); DOF2_SetInt( GetPlayerArquivo( playerid ), "Dinheiro", GetPlayerMoney( playerid )); DOF2_SetInt( GetPlayerArquivo( playerid ), "Admin", Player[ playerid ][ Admin ] ); DOF2_SetInt( GetPlayerArquivo(playerid), "Morreu", pInfo2[playerid][Morreu]); DOF2_SetInt( GetPlayerArquivo(playerid), "Matou", pInfo2[playerid][Matou]); DOF2_SaveFile(); } return 1; } stock LoadPlayer(playerid) { if( DOF2_FileExists( GetPlayerArquivo( playerid ) ) ) { //Player[ playerid ][ Skin ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Skin" ); Player[ playerid ][ Score ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Score" ); Player[ playerid ][ Dinheiro ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Dinheiro" ); Player[ playerid ][ Admin ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Admin" ); pInfo2[playerid][Matou] = DOF2_GetInt( GetPlayerArquivo(playerid), "Matou"); pInfo2[playerid][Morreu] = DOF2_GetInt( GetPlayerArquivo(playerid), "Morreu"); SetPlayerScore( playerid, Player[ playerid ][ Score ] ); GivePlayerMoney( playerid, Player[ playerid] [ Dinheiro ] ); //SetPlayerSkin(playerid, Player[ playerid ][ Skin ] ); } return 1; } |