Código:
SalvarVeiculo(playerid, modelo, valor)
{
new file[40], string[100];
format(file, sizeof file, "Veiculos/%s.ini", PegarNome(playerid));
new aleatorio = random(sizeof(posconce));
DOF2_CreateFile(file);
DOF2_SetString(file, "Dono", PegarNome(playerid));
DOF2_SetInt(file, "Valor", valor);
DOF2_SetInt(file, "Modelo", modelo);
DOF2_SetFloat(file, "PosX", posconce[aleatorio][0]);
DOF2_SetFloat(file, "PosY", posconce[aleatorio][1]);
DOF2_SetFloat(file, "PosZ", posconce[aleatorio][2]);
DOF2_SetFloat(file, "PosA", posconce[aleatorio][3]);
DOF2_SetFloat(file, "Lataria", 1000);
DOF2_SetInt(file, "Cor1", 1);
DOF2_SetInt(file, "Cor2", 1);
DOF2_SaveFile();
GivePlayerMoneyEx(playerid, -valor);
vConectado[playerid] = false;
format(string, sizeof(string), "[CONCESSIONARIA] Parabens! voce comprou um %s no Valor de: R$%d", GetVehicleName(modelo), valor);
SendClientMessage(playerid, CINZA, string);
SendClientMessage(playerid, CINZA, "[INFO] Use: /painel para conectar seu novo veiculo!");
return 1;
}
Como faço pra salvar 2 ou mais veiculos meu salvamento ta assim so da pra salvar 1