20.05.2015, 18:05
@Luis You forget:
and
Quote:
#include <dini> - http://dracoblue.net/downloads/dini/ |
Quote:
public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { VehicleInfo[vehicleid][paintjob] = paintjobid; new file[50],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(file,sizeof(file),"Server TUNE/%s.ini",name); if(!dini_Exists(file)){ dini_Create(file); dini_IntSet(file,"Paintjob",paintjobid); }else{ dini_IntSet(file,"Paintjob",paintjobid); } return 1; } |
Quote:
OnVehicleRespray(playerid, vehicleid, color1, color2) { VehicleInfo[vehicleid][vcolor1] = color1; VehicleInfo[vehicleid][vcolor2] = color2; new file[50],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(file,sizeof(file),"Server/Tune/%s.ini",name); if(!dini_Exists(file)){ dini_Create(file); dini_IntSet(file,"vcolor1",color1); dini_IntSet(file,"vcolor2",color2); }else{ dini_IntSet(file,"vcolor1",color1); dini_IntSet(file,"vcolor2",color2); } return 1; } |