21.04.2013, 23:22
Hello I'm here to ask for help neesito pass this FS (https://sampforum.blast.hk/showthread.php?tid=276887) to this GM (http://forum.sa-mp.com/showthread.php ? t = 431724 & highlight = Aidan% AE% B6% 27s) ok the basics are below each other publics like stocks and enum (correct me if I'm wrong) ok but there are things which are not as
and all that is under it to where it says on FSini I think is ongamemodeini and FSexit but honestly not: S please help
Quote:
|
LoadVehicles() { new string[64]; new File:handle, count; new filename[64], line[256], s, key[64]; for(new i=1; i < MAX_DVEHICLES; i++) { format(filename, sizeof(filename), VEHICLE_FILE_PATH "v%d.ini", i); if(!fexist(filename)) continue; handle = fopen(filename, io_read); while(fread(handle, line)) { StripNL(line); s = strfind(line, "="); if(!line[0] || s < 1) continue; strmid(key, line, 0, s++); if(strcmp(key, "Created") == 0) VehicleCreated[i] = strval(line[s]); else if(strcmp(key, "Model") == 0) VehicleModel[i] = strval(line[s]); |

