27.11.2010, 11:31
Hi,
Ive got a problem. This piece of code doesent save the vehicle colors. Everything, all checks and things, are valid, but he just dont work. Ive added a print() to the code, and it shown me that it can pass all checks, but it just dont save on a weird way. I need some help!
Ive got a problem. This piece of code doesent save the vehicle colors. Everything, all checks and things, are valid, but he just dont work. Ive added a print() to the code, and it shown me that it can pass all checks, but it just dont save on a weird way. I need some help!
Код:
public SavePlayerVehicleColor(playerid, c1, c2)
{
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof file,"%s/%s.ini",CARFILE,pname);
if (dini_Exists(file))
{
dini_IntSet((file),"Color1",c1);
dini_IntSet((file),"Color2",c2);
return 1;
}
}

