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



4 posts in this topic

Здравствуйте.

Вылезает такая ошибка, после создания системы регистрации.

C:\Users\Администратор\Desktop\Grand RolePlay by Aurum\gamemodes\simple.pwn(332) : error 029: invalid expression, assumed zero
C:\Users\Администратор\Desktop\Grand RolePlay by Aurum\gamemodes\simple.pwn(332) : error 029: invalid expression, assumed zero
C:\Users\Администратор\Desktop\Grand RolePlay by Aurum\gamemodes\simple.pwn(332) : error 029: invalid expression, assumed zero
C:\Users\Администратор\Desktop\Grand RolePlay by Aurum\gamemodes\simple.pwn(332) : fatal error 107: too many error messages on one line

Строка 332 - 

new query_string[191+3+4+11+3+(11*4)+3+4+MAX_PLAYER_NAME] = "UPDATE `accounts` SET";

Полностью сток -

stock OnPlayerSave(playerid)
{
    new query_string[191+3+4+11+3+(11*4)+3+4+MAX_PLAYER_NAME] = "UPDATE `accounts` SET";
 
    format(query_string, sizeof(query_string), "%s `Level` = '%d',", query_string, PI[playerid][Level]);
    format(query_string, sizeof(query_string), "%s `Exp` = '%d',", query_string, PI[playerid][Exp]);
    format(query_string, sizeof(query_string), "%s `Money` = '%d',", query_string, PI[playerid][Money]);
    format(query_string, sizeof(query_string), "%s `Model` = '%d',", query_string, PI[playerid][Model]);
    format(query_string, sizeof(query_string), "%s `X` = '%f',", query_string, PI[playerid][X]);
    format(query_string, sizeof(query_string), "%s `Y` = '%f',", query_string, PI[playerid][Y]);
    format(query_string, sizeof(query_string), "%s `Z` = '%f',", query_string, PI[playerid][Z]);
    format(query_string, sizeof(query_string), "%s `A` = '%f',", query_string, PI[playerid][A]);
    format(query_string, sizeof(query_string), "%s `Interior` = '%d',", query_string, PI[playerid][Interior]);
    format(query_string, sizeof(query_string), "%s `VirtualWorld` = '%d'", query_string, PI[playerid][VirtualWorld]);
 
    format(query_string, sizeof(query_string), "%s WHERE `Name` = '%s'", query_string, PI[playerid][Name]);
    mysql_tquery(mysql_connection, query_string, !"", !"");
}

Заранее спасибо :$

Share this post


Link to post
Share on other sites

 

new const query_mysql[] = "UPDATE `accounts` SET";
new query_string[191+3+4+11+3+(11*4)+3+4+MAX_PLAYER_NAME + sizeof query_mysql];

 

Share this post


Link to post
Share on other sites
2 минуты назад, MuhammadPawn сказал:

 


new const query_mysql[] = "UPDATE `accounts` SET";
new query_string[191+3+4+11+3+(11*4)+3+4+MAX_PLAYER_NAME + sizeof query_mysql];

 

Хэмм.. Те же самые ошибки, но на строке 

new const query_mysql[] = "UPDATE `accounts` SET";

Помогаааай :$

Share this post


Link to post
Share on other sites

@Aurum 

new query_string[191+3+4+11+3+(11*4)+3+4+MAX_PLAYER_NAME];
format(query_string, sizeof(query_string), "UPDATE `accounts` SET"); 
// запрос

 

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

    • sawe123
      By sawe123
      Есть ли какая то система видел в моде что можно настраивать вес авто ищу такую систему.