PHP код:
stock LoadDynamicobject(playerid,listitem)
{
    new bigDialog[49];
    new string[800];
    format(bigDialog, sizeof bigDialog, "maps/%s", titleFiles[playerid][listitem]);
    new RandomePos[8][64],FileStr[256],s[128],File: file = fopen(bigDialog, io_read); printf( "Прочитали названия 2 %s",bigDialog);
    if (file)
    {
        printf( "читаем дальше 1 %s",file);
        fread(file, FileStr);
        split(FileStr, RandomePos, ',');
        printf( "читаем дальше 2 %d",RandomePos);
           CountObject = strval(RandomePos[0]);
        for(new i; i<CountObject; i++)
        {
            printf( "CreateObject('%d''%f''%f'%f'%f''%f''%f');",ObjectInfo[i][modelidfs], ObjectInfo[i][Xman],ObjectInfo[i][Yman],ObjectInfo[i][Zman], ObjectInfo[i][rXman], ObjectInfo[i][rYman], ObjectInfo[i][rZman]);
            fread(file, FileStr);
            if (!sscanf(string, "p<\">'CreateObject('d''f''f'f'f''f''f''f''f''f');", ObjectInfo[i][modelidfs], ObjectInfo[i][Xman],ObjectInfo[i][Yman],ObjectInfo[i][Zman], ObjectInfo[i][rXman], ObjectInfo[i][rYman], ObjectInfo[i][rZman]))
            {
                printf( "Прочитали названия 4 %s",bigDialog);
            
                ObjectInfo[i][objects] = CreateDynamicObject(ObjectInfo[i][modelidfs], ObjectInfo[i][Xman],ObjectInfo[i][Yman],ObjectInfo[i][Zman], ObjectInfo[i][rXman], ObjectInfo[i][rYman], ObjectInfo[i][rZman]);
                format(s,256,"{527ac1}ID Объекта %d",ID);
                printf( "modelidfs = %d |Start %s | X - %f | Y - %f | Z - %f | Rx - %f | rY - %f | rZ - %f |",ObjectInfo[i][modelidfs],ObjectInfo[i][Start],ObjectInfo[i][Xman],ObjectInfo[i][Yman],ObjectInfo[i][Zman],ObjectInfo[i][rXman],ObjectInfo[i][rYman],ObjectInfo[i][rZman]);
            }
        }
    }
    fclose(file);
    return 1;
} 
 в общем вот мой код, думаю понятней будет)
А в файле
PHP код:
5
CreateObject(18450, -1378.38, -2979.43, 45.92,   0.00, 0.00, 90.00);
CreateObject(18450, -1378.37, -3058.60, 45.91,   0.00, 0.00, 90.00);
CreateObject(18450, -1378.38, -3137.98, 45.89,   0.00, 0.00, 90.00);
CreateObject(18450, -1378.37, -3217.32, 45.85,   0.00, 0.00, 90.00);
CreateObject(18450, -1378.37, -3297.18, 45.82,   0.00, 0.00, 90.00); 
 Мне с этого кода нужно, прогружения объектов из файла, сразу же на сервер!