Зарегистрировавшись у нас, вы сможете обсуждать, делиться и отправлять личные сообщения другим участникам нашего сообщества.
Зарегистрироваться!#include <a_samp>
// Функция для определения мира для нового игрока
new int GetRandomWorld()
{
    // Генерация случайного числа от 0 до 2 (включительно)
    new randomWorld = random(3);
    // Возвращение случайного мира
    return randomWorld;
}
// Обработчик события входа игрока в игру
public Action:onPlayerConnect(playerid)
{
    // Получение случайного мира для игрока
    new world = GetRandomWorld();
    // Перемещение игрока в выбранный мир
    switch (world)
    {
        case 0:
            // Код перемещения в мир 0
            break;
        case 1:
            // Код перемещения в мир 1
            break;
        case 2:
            // Код перемещения в мир 2
            break;
    }
    // Вывод сообщения игроку о том, в каком мире он оказался
    SendClientMessage(playerid, -1, "Добро пожаловать в мир: ");
    SendClientMessage(playerid, -1, world == 0 ? "Мир 0" : world == 1 ? "Мир 1" : "Мир 2");
    return 1;
}че то по моему какой то не завершенный бредответ chat gpt
Код:#include <a_samp> // Функция для определения мира для нового игрока new int GetRandomWorld() { // Генерация случайного числа от 0 до 2 (включительно) new randomWorld = random(3); // Возвращение случайного мира return randomWorld; } // Обработчик события входа игрока в игру public Action:onPlayerConnect(playerid) { // Получение случайного мира для игрока new world = GetRandomWorld(); // Перемещение игрока в выбранный мир switch (world) { case 0: // Код перемещения в мир 0 break; case 1: // Код перемещения в мир 1 break; case 2: // Код перемещения в мир 2 break; } // Вывод сообщения игроку о том, в каком мире он оказался SendClientMessage(playerid, -1, "Добро пожаловать в мир: "); SendClientMessage(playerid, -1, world == 0 ? "Мир 0" : world == 1 ? "Мир 1" : "Мир 2"); return 1; }
куда?в коде добавь
SetPlayerVirtualWorld(playerid, playerid);
enum tpInfo
{
    tpName[50],
    Float:tpEnterPos_X,
    Float:tpEnterPos_Y,
    Float:tpEnterPos_Z,
    tpEnterWorld,
    tpEnterInt,
    Float:tpExitPos_X,
    Float:tpExitPos_Y,
    Float:tpExitPos_Z,
    Float:tpExitPos_A,
    tpExitInt,
    tpExitWorld
}
new TeleportInfo[][tpInfo] =
{
    {"Дом ведьмы",-1059.992675, -1205.296630, 129.218750, 0, 0, 281.16799926758,41.762001037598,1011.0999755859, suda, suda},я слегка не выкупаю, нахуя ты даешь ответ, с нейронки - если сам автор темы, мог самостоятельно залезть в нейронку, и с ней уже ебаться?))0ответ chat gpt
Код:#include <a_samp> // Функция для определения мира для нового игрока new int GetRandomWorld() { // Генерация случайного числа от 0 до 2 (включительно) new randomWorld = random(3); // Возвращение случайного мира return randomWorld; } // Обработчик события входа игрока в игру public Action:onPlayerConnect(playerid) { // Получение случайного мира для игрока new world = GetRandomWorld(); // Перемещение игрока в выбранный мир switch (world) { case 0: // Код перемещения в мир 0 break; case 1: // Код перемещения в мир 1 break; case 2: // Код перемещения в мир 2 break; } // Вывод сообщения игроку о том, в каком мире он оказался SendClientMessage(playerid, -1, "Добро пожаловать в мир: "); SendClientMessage(playerid, -1, world == 0 ? "Мир 0" : world == 1 ? "Мир 1" : "Мир 2"); return 1; }
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9776) : error 017: undefined symbol "playerid"
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9778) : error 020: invalid symbol name ""
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9780) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9783) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9786) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9792) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9796) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9799) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9805) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9811) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9816) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9820) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9829) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9836) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9839) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9842) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9845) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9854) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9867) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9878) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9881) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9899) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9902) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9905) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9908) : error 055: start of function body without function header
C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9911) : error 055: start of function body without function header
Compilation aborted.
Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.    {"Дом Ведьмы",-1059.992675, -1205.296630, 129.218750, 0, 0, 281.16799926758,41.762001037598,1011.0999755859, playerid, playerid},C:\Users\kiril\Desktop\lengli\gamemodes\arizona.pwn(9844) : error 018: initialization data exceeds declared size    {"Äîì Âåäüìû",-1059.992675, -1205.296630, 129.218750, 0, 0, 281.16799926758,41.762001037598,1011.0999755859, "playerid", "playerid"},new TeleportInfo[MAX_PLAYERS][tpInfo] =
{
    {"Дом ведьмы",-1059.992675, -1205.296630, 129.218750, 0, 0, 281.16799926758,41.762001037598,1011.0999755859, playerid, playerid},выводит полностью пустую строку компиляцииPawn:new TeleportInfo[MAX_PLAYERS][tpInfo] = { {"Дом ведьмы",-1059.992675, -1205.296630, 129.218750, 0, 0, 281.16799926758,41.762001037598,1011.0999755859, playerid, playerid},
попробуй так
пустой компил только после твоей идеи, когда обратно поставил то, что было, стало нормально компилитсья
@Nagisa, если пустой компилятор - значит, ошибок нету.