18.07.2017, 15:00
fiz assim:
mas da esse warn:
Quote:
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 ), "AliveTime", Player[playerid][pDTime]); DOF2_SetInt( GetPlayerArquivo( playerid ), "pSexo", Player[playerid][pSexo]); DOF2_SetInt( GetPlayerArquivo( playerid ),"pSede", pInfo[playerid][pSede]); 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" ); Player[ playerid ][ pDTime ] = DOF2_GetInt( GetPlayerArquivo(playerid), "AliveTime"); Player[ playerid ][ pSexo ] = DOF2_GetInt( GetPlayerArquivo(playerid), "pSexo"); Player[ playerid ][ pSede ] = DOF2_GetInt( GetPlayerArquivo(playerid),"pSede"); SetPlayerScore( playerid, Player[ playerid ][ Score ] ); GivePlayerMoney( playerid, Player[ playerid] [ Dinheiro ] ); //SetPlayerSkin(playerid, Player[ playerid ][ Skin ] ); } return 1; } |
Quote:
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(835) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |