17.07.2017, 01:03
alguem pode me ajudar com isso? eu tou tentando salvar a sede/fome do jogador mas eu nunca salvei algo em float, nao sei se tou colocando as linhas certas! alguem da uma olhadinha ai pra mim pfv?
2. deem uma olhada no alive time tbm pfv, no arquivo apareque o tempo certo do alive time, mas quando entro no sv ele zera!
Quote:
D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(705) : warning 213: tag mismatch D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(705) : error 032: array index out of bounds (variable "Player") D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(722) : warning 213: tag mismatch D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(722) : error 032: array index out of bounds (variable "Player") D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(723) : warning 213: tag mismatch D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(723) : error 032: array index out of bounds (variable "Player") D:\samp037_svr_R2-1-1_win32\gamemodes\survive1.pwn(723) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
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 ), "Sede", Player[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), "Alive Time"); Player[ playerid ][ pSede ] = FloatOF2_GetFloat(GetPlayerArquivo(playerid),"Se de"); SetPlayerScore( playerid, Player[ playerid ][ Score ] ); //SetPlayerSkin(playerid, Player[ playerid ][ Skin ] ); } return 1; } |