• Уважаемый Гость.
    - Прежде чем создать свою тему, пожалуйста, попробуй воспользоваться этим -> ПОИСКОМ !!!
    - После решения Вашего вопроса (проблемы) - нажмите "Лучший ответ", на сообщении, которое его решило. За игнорирование этого действия - Вы получите соответствующее предупреждение. Мы - стараемся Вам помочь. Уделите 10 секунд - чтобы нажать кнопку. (Если у Вас нет такой возможности - укажите в последнем своем сообщении какой ответ Вы считаете лучшим. Наши модераторы сделают это за Вас)
    ЗАПРЕЩЕНО:
    - Cоздавать темы с названиями "Помогите", "Плиз", "Ошибка", "Не могу найти", "Хелп" и тому подобное;
    - Cоздавать темы без детального описания того, что нужно исправить.
    - Cоздавать темы из одного скриншота.
    За игнор правил форума - Ваша тема будет удалена, а Вы получите системное предупреждение.

error 017: undefined symbol "cache_get_row_int"

Риктик

Ученик
Всем привет, у меня на сервере стоит MYSQL R41-4, а из темы @AndreY.eXe я взял его систему личного транспорта, у него кажется более старая версия MYSQL.

Я из его кода поменял, то что мне надо.

Но все равно ошибки:
Код:
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(17269) : error 017: undefined symbol "cNumber"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(17278) : error 017: undefined symbol "GetString"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(17273) : warning 203: symbol is never used: "playerid"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21864) : warning 213: tag mismatch
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21867) : error 017: undefined symbol "cache_get_row_int"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21868) : error 017: undefined symbol "cache_get_row_int"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21869) : error 017: undefined symbol "cache_get_row_float"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21870) : error 017: undefined symbol "cache_get_row_float"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21871) : error 017: undefined symbol "cache_get_row_float"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21872) : error 017: undefined symbol "cache_get_row_float"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21873) : error 017: undefined symbol "cache_get_row_int"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21874) : error 017: undefined symbol "cache_get_row_int"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21875) : error 017: undefined symbol "cache_get_row"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21876) : error 017: undefined symbol "cache_get_row_int"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21881) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21885) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21887) : error 017: undefined symbol "acc_int_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21887) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21887) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21887) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21888) : error 017: undefined symbol "acc_float_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21888) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21888) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21888) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21889) : error 017: undefined symbol "acc_float_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21889) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21889) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21889) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21890) : error 017: undefined symbol "acc_float_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21890) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21890) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21890) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21891) : error 017: undefined symbol "acc_float_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21891) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21891) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21891) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21892) : error 017: undefined symbol "acc_int_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21892) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21892) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21892) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21893) : error 017: undefined symbol "acc_int_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21893) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21893) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21893) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21894) : error 017: undefined symbol "acc_str_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21894) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21894) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21894) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21895) : error 017: undefined symbol "acc_int_strcat"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21895) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21895) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21895) : warning 202: number of arguments does not match definition
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21904) : error 017: undefined symbol "mysql"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21905) : error 017: undefined symbol "mysql"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21910) : error 017: undefined symbol "cache_get_row_int"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21911) : error 017: undefined symbol "cache_get_row_int"
C:\Users\Artusja\Desktop\sweg\gamemodes\mysamp.pwn(21912) : error 017: undefined symbol "cache_get_row_int"

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Не знаю поможет кому-то или нет, но вот фрагментик кода:

C++:
stock LoadAutoShow()
{
    new string[300], model, total, Float: p_x, Float: p_y, Float: p_z, Float: p_a, cost;
    new Cache: result = mysql_query(dbHandle, "select * from `auto_show`");
    new vehs = cache_get_row_count(dbHandle);
    if(vehs == 0)return print("Ошибка загрузки транспорта  на продажу. Найдено 0 моделей!");

    for(new i; i < vehs; i ++)
    {
        model = cache_get_row_int(i, 0, mysql);
        total = cache_get_row_int(i, 1, mysql);
        cost = cache_get_row_int(i, 2, mysql);
        p_x = cache_get_row_float(i, 3, mysql);
        p_y = cache_get_row_float(i, 4, mysql);
        p_z = cache_get_row_float(i, 5, mysql);
        p_a = cache_get_row_float(i, 6, mysql);

        new carid = AddStaticVehicleEx(model, p_x, p_y, p_z, p_a, 1, 1, -1);
        format(string, sizeof(string), "\
        ** Транспорт продаеться **\n\n\
        {ffffff}Модель: {FF9900}%s (%d)\n\
        {ffffff}Стоимость: {FF9900}%d$\n\
        {ffffff}Осталось моделей: {FF9900}%d шт.\n\n\
        {afafaf}Чтобы купить сядьте в транспорт", VehicleName[model-400], model, cost, total);
        Text_Sell_Vehicles[carid] = Create3DTextLabel(string, 0x9CABDDAA, p_x, p_y, p_z, 10.0, 0, 0);
        Sell_Vehicles[carid] = true;
    }
    printf("Загружено: %d машин на продажу", vehs);
    cache_delete(result, mysql);
    return true;
}
stock SellingCar(playerid, carid)
{
    new model = GetVehicleModel(carid), cost, total;
    new string[135];
    format(string, sizeof(string), "select `Total_car`, `Cost_car` from `auto_show` where `Model_car` = %d", model);
    new Cache: result = mysql_query(mysql, string);
    new vehs = cache_get_row_count(mysql);
    if(vehs == 0)return RemovePlayerFromVehicle(playerid);

    total = cache_get_row_int(0, 0, mysql);
    cost = cache_get_row_int(0, 1, mysql);
    Sell_Vehicle_Player_Cost[playerid] = cost;
    SetPVarInt(playerid, "total_car_for_selling_car", total);

    format(string, sizeof(string), "\
    {9CABDD}Вы действительно хотите приобрести данный транспорт\n\n\
    {ffffff}Модель: {FF9900}%s (%d)\n\
    {ffffff}Стоимость: {FF9900}%d$\n\n", VehicleName[model-400], model, cost);
    ShowPlayerDialog(playerid, SELL_VEHICLE, 0, "Покупка транспорта", string, "Да", "Отмена");
    cache_delete(result, mysql);
    return true;
}
 
Сверху Снизу