Рекомендованные сообщения



4 posts in this topic

Вот ошибку выдаёт.
C:\Users\Desktop\gamemodes\new.pwn(48918) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Users\Desktop\gamemodes\new.pwn(48921) : error 035: argument type mismatch (argument 3)
C:\Users\Desktop\gamemodes\new.pwn(48922) : error 035: argument type mismatch (argument 3)

А вот сам код где ошибку показывает

stock SaveHotel()
{
    new query[128];
    for(new i = 0; i < 12; i++)
    {
        mysql_format(dbHandle, query, "UPDATE `hotel` SET `owned` = '%d' WHERE `id` = '%d'", MotelInfo[i][mOwned], i);
        mysql_tquery(dbHandle, query, false, "", "");
    }
    return true;
}

Вот скрин со строчками

 

Share this post


Link to post
Share on other sites

@fulword заменить: 
 

Спойлер

stock SaveHotel()
{
    new querys[128];
    for(new i = 0; i < 12; i++)
    {
        mysql_format(dbHandle, querys, "UPDATE `hotel` SET `owned` = '%d' WHERE `id` = '%d'", MotelInfo[i][mOwned], i);
        mysql_tquery(dbHandle, querys, "", "");
    }
    return true;
}

 

 

Share this post


Link to post
Share on other sites

DEST

Спойлер

C:\UsersDesktop\gamemodes\new.pwn(48921) : error 035: argument type mismatch (argument 3)

Спойлер

mysql_format(dbHandle, query, "UPDATE `hotel` SET `owned` = '%d' WHERE `id` = '%d'", MotelInfo[i][mOwned], i);

Share this post


Link to post
Share on other sites

Вот так замените: 

Спойлер

stock SaveHotel()
{
    new querys[128];
    for(new i = 0; i < 12; i++)
    {
        mysql_format(dbHandle, querys, sizeof querys, "UPDATE `hotel` SET `owned` = '%d' WHERE `id` = '%d'", MotelInfo[i][mOwned], i);
        mysql_tquery(dbHandle, querys, "", "");
    }
    return true;
}

 

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • sweet
      By sweet
      Хелп,при компиле выдает ошибку C:\Users\PC\Desktop\pawno\pawno\include\objects.inc(1104) : error 029: invalid expression, assumed zero
      Сама строка в которой ошибка:    {-2032.7073,-73.8643,35.2484, -2006.3911,-52.6238,35.2704},
      Закройте тему,проблема решилась сама по себе