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



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

    • Guest володя
      By Guest володя
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(67) : warning 215: expression has no effect
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(114 -- 121) : error 001: expected token: "-string end-", but found "-identifier-"
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121) : warning 217: loose indentation
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121) : warning 215: expression has no effect
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121 -- 124) : warning 215: expression has no effect
      Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

      1 Error.
      Вот код: