SA-MP Forums Archive
Y_INI BUG - Have Codes! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_INI BUG - Have Codes! (/showthread.php?tid=468880)



Y_INI BUG - Have Codes! - yos136 - 10.10.2013

i got problem when saving int.

INI_WriteInt(ini,"COLOR",2113864191); that is RGB COLOR - 125 255 1...

- Crashing the server..

it is working with INI_WriteString...

someone know how to fix this?


Re: Y_INI BUG - Have Codes! - Scrillex - 10.10.2013

HERE IS Your Answer


Re: Y_INI BUG - Have Codes! - yos136 - 10.10.2013

and if money bank?

it is also crash..


Re: Y_INI BUG - Have Codes! - Scrillex - 10.10.2013

This needs to be working ... As Writing Hex code..
pawn Код:
new playercolor; //variable for store the player's color
INI_WriteHex(filename[], "color", GetPlayerColor(playerid)); //to write the color.. You need to use SetPlayerColor, before get the players color with this function
INI_Hex("color", playercolor); //to read the color from file
SetPlayerColor(playerid, playercolor); //to set the player's color back.



Re: Y_INI BUG - Have Codes! - yos136 - 10.10.2013

BUT!!!
What about money bank?
it is also crashing!

money to hex? Ha? O_o


Re: Y_INI BUG - Have Codes! - Scrillex - 10.10.2013

Uhh money to
pawn Код:
INI_WriteInt(File,"Cash",0);


load

INI_Int("Cash",PlayerInfo[playerid][pCash]);



Re: Y_INI BUG - Have Codes! - park4bmx - 10.10.2013

Quote:
Originally Posted by yos136
Посмотреть сообщение
and if money bank?

it is also crash..
Makes total no sense!

Ur talking about colour and then money ??


Re: Y_INI BUG - Have Codes! - PT - 10.10.2013

Quote:
Originally Posted by yos136
Посмотреть сообщение
BUT!!!
What about money bank?
it is also crashing!

money to hex? Ha? O_o
money bank is one number and not one hex


Re: Y_INI BUG - Have Codes! - yos136 - 10.10.2013

so money bank set to WriteString?


Re: Y_INI BUG - Have Codes! - PT - 10.10.2013

Quote:
Originally Posted by yos136
Посмотреть сообщение
so money bank set to WriteString?
no this form

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
Uhh money to
pawn Код:
INI_WriteInt(File,"Cash",0);


load

INI_Int("Cash",PlayerInfo[playerid][pCash]);