forward LoadPlayerVehicle(playerid); public LoadPlayerVehicle(playerid) { new openfile[128]; format(openfile, sizeof openfile, VEH_SAVE_FILE, GetName(playerid)); //if (!fexist(openfile)) return 1; // He doesn't own a vehicle new File:vehs = fopen(openfile,io_read); new string[256]; new load[40][32]; new newload = 19; // last "strval(load[x])" before the mods loop if (vehs) { print("attempting to read file"); while (fread(vehs, string, 256)) { split(string, load, '|'); print("spawning vehicles"); |
forward LoadPlayerVehicle(); public LoadPlayerVehicle() { new openfile[128]; format(openfile, sizeof openfile, VEH_SAVE_FILE, GetName(playerid)); //if (!fexist(openfile)) return 1; // He doesn't own a vehicle new File:vehs = fopen(openfile,io_read); new string[256]; new load[40][32]; new newload = 19; // last "strval(load[x])" before the mods loop if (vehs) { print("attempting to read file"); while (fread(vehs, string, 256)) { split(string, load, '|'); print("spawning vehicles"); |