07.11.2015, 01:03
Quote:
Isso estб meio confuso
PHP Code:
PHP Code:
|
PHP Code:
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
2 Warnings.
PHP Code:
public OnPlayerDisconnect(playerid, reason)
{
//========= salvamento de vida // armas
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++)
{
GetPlayerWeaponData(playerid, i, Arma[i], Balas[i]);
format(string, sizeof(string), "Arma%d", i);
DOF2_SetInt(file, string, Arma[i]);
format(string, sizeof(string), "Balas%d", i);
DOF2_SetInt(file, string, Balas[i]);
}
DOF2_SaveFile();
}
return 1;
}