if(!dini_Isset(way, "V0_pj"))
{
for(new s=0; s<5; s++)
{
new v_pj[16];
format(v_pj,16,"V%d_pj",s);
dini_IntSet(way,v_pj,9999);
}
}
if(!INI_WriteInt(UserPath(playerid), "V0_pj"))
{
for(new s=0; s<5; s++)
{
new v_pj[16];
format(v_pj,16,"V%d_pj",s);
INI_WriteString(UserPath(playerid),v_pj,9999);
}
}
if(!INI_WriteInt(UserPath(playerid), "V0_pj")) => error 035: argument type mismatch (argument 1)
INI_WriteString(UserPath(playerid),v_pj,9999); => error 035: argument type mismatch (argument 1)
new
INI:ini = INI_Open("myini.ini");
INI_WriteString(ini, "NAME", "******");
INI_WriteInt(ini, "SCORE", gScore);
INI_WriteFloat(ini, "HEALTH", health);
INI_Close(ini);
new
INI:ini = INI_Open(UserPath(playerid));
for(new s=0; s<5; s++)
{
new v_pj[16];
format(v_pj,16,"V%d_pj",s);
INI_WriteInt(ini, v_pj, 9999);
}
INI_Close(ini);
for(new s=0; s<5; s++)
{
new V_id[16];
format(V_id, 16, "V%d_id", s);
if(DOF2_GetInt(UserPath(playerid), V_id) > 0)
{
new V_posX[16]; format(V_posX, 16, "V%d_posX", s);
new V_posY[16]; format(V_posY, 16, "V%d_posY", s);
new V_posZ[16]; format(V_posZ, 16, "V%d_posZ", s);
new V_angle[16]; format(V_angle, 16, "V%d_angle", s);
new V_color1[16]; format(V_color1, 16, "V%d_color1", s);
new V_color2[16]; format(V_color2, 16, "V%d_color2", s);
new V_neons[16]; format(V_neons, 16, "V%d_neons", s);
new V_spz[16]; format(V_spz, 16, "V%d_spz", s);
PlayerVehicle[s][playerid] = CreateVehicle(DOF2_GetInt(UserPath(playerid), V_id), DOF2_GetFloat(UserPath(playerid), V_posX), DOF2_GetFloat(UserPath(playerid), V_posY), DOF2_GetFloat(UserPath(playerid), V_posZ), DOF2_GetFloat(UserPath(playerid), V_angle), DOF2_GetInt(UserPath(playerid), V_color1), DOF2_GetInt(UserPath(playerid), V_color2), 300);
if(DOF2_SetInt(UserPath(playerid), V_spz))
{
SetVehicleNumberPlate(PlayerVehicle[s][playerid], DOF2_GetString(UserPath(playerid), V_spz));
SetVehicleToRespawn(PlayerVehicle[s][playerid]);
}
if(DOF2_GetInt(UserPath(playerid), V_neons) > 0)
{
PlayerVehicleNeon1[s][playerid] = CreateObject(DOF2_GetInt(UserPath(playerid), V_neons), -0.66, 0.04, -0.48, 0.00, 0.00, 0.00);
PlayerVehicleNeon2[s][playerid] = CreateObject(DOF2_GetInt(UserPath(playerid), V_neons), 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
AttachObjectToVehicle(PlayerVehicleNeon1[s][playerid], PlayerVehicle[s][playerid], -0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
AttachObjectToVehicle(PlayerVehicleNeon2[s][playerid], PlayerVehicle[s][playerid], 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
PlayerVehicleNeons[s][playerid] = true;
}
PlayerVehicle_State[s][playerid]=true;
}
}