Debug...OnGameModeInit... HELP
#4

Код:
for(new n = 0; n < MAX_OBJ; n++) dGunData[n][ObjID] = -1;
	#if defined SAVING
	new File:file = fopen("DroppedGuns.ini", io_read);
    if(file)
    {
        new buffer[256], FileCoords[5][20];
        for(new g = 0; g < MAX_OBJ; g++)
        {
            fread(file, buffer);
            split(buffer, FileCoords, ',');
            dGunData[g][ObjPos][0] = floatstr(FileCoords[0]);
			dGunData[g][ObjPos][1] = floatstr(FileCoords[1]);
			dGunData[g][ObjPos][2] = floatstr(FileCoords[2]);
			dGunData[g][ObjData][0] = strval(FileCoords[3]);
			dGunData[g][ObjData][1] = strval(FileCoords[4]);
			if(dGunData[g][ObjData][0] > 0 && dGunData[g][ObjData][1] != 0 && dGunData[g][ObjPos][0] != 0)
			{
				dGunData[g][ObjID] = CreateObject(GunObjects[dGunData[g][ObjData][0]], dGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-1, 93.7, 120.0, 120.0);
				printf("* %s Betцlve: %f,%f,%f", GunNames[dGunData[g][ObjData][0]], dGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-1);
			}
        }
    }
Hmmm, I think this lines... problem
Reply


Messages In This Thread
Debug...OnGameModeInit... HELP - by kexy96 - 04.08.2016, 12:07
Re: Debug...OnGameModeInit... HELP - by WingedFrostWolf - 04.08.2016, 12:29
Re: Debug...OnGameModeInit... HELP - by Stinged - 04.08.2016, 12:55
Re: Debug...OnGameModeInit... HELP - by kexy96 - 04.08.2016, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)