26.02.2015, 23:34
Quote:
Se nao for pedir muito , poderia me explicar melhor pois olhando na wiki nao entendi muito bem .
|
Se vocк quiser salvar em hexadecimal vocк pode converter decimal para hexadecimal e salvar como uma string.
E na hora de setar a cor converter hexadecimal para decimal.
Olhe isto:
http://pt.wikipedia.org/wiki/Convers...num%C3%A9ricos
Um outro exemplo com DOF2:
pawn Код:
DOF2_SetInt("MultiKill.txt", "Decimal", HexToInt("0xFF0000FF"));
DOF2_SaveFile();
// ou
DOF2_SetInt("MultiKill.txt", "Decimal", GetPlayerColor(playerid));
DOF2_SaveFile();
//
SetPlayerColor(playerid, DOF2_GetInt("MultiKill.txt", "Decimal"));