07.11.2015, 00:17
/eae galera to fazendo um sistema de salvamento de dados poderiam me ajudar com esses warnings ?
linhas
ґ
PHP Code:
C:\Users\Jefferson\Desktop\ProjectDayz\gamemodes\GM.pwn(2702) : warning 217: loose indentation
C:\Users\Jefferson\Desktop\ProjectDayz\gamemodes\GM.pwn(2878) : warning 204: symbol is assigned a value that is never used: "Balas"
C:\Users\Jefferson\Desktop\ProjectDayz\gamemodes\GM.pwn(2878) : warning 204: symbol is assigned a value that is never used: "Arma"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
ґ
PHP Code:
new file[155], aname[MAX_PLAYER_NAME], Arma[13], Balas[13], string[155];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), "Contas/%.ini", aname);
if(DOF2_FileExists(file))
{
DOF2_SetFloat(file, "Vida", pInfo[playerid][vida]);
for(new i= 0; i < 13; i++)
{
format(string, sizeof(string), "Arma%d", i);
GetPlayerWeaponData(playerid, i, Arma[i], Balas[i]);
format(string, sizeof(string), "Balas%d", i);
DOF2_SetInt(file, string, Balas[i]);
}
DOF2_SaveFile();
}