User#30643

[закрыто] ERROR не могу понять в чём причина

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



Не найдено.

2 posts in this topic

Спойлер

C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(54) : error 076: syntax error in the expression, or invalid function call
C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(56) : error 014: invalid statement; not in switch
C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(56) : warning 215: expression has no effect
C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(56) : error 001: expected token: ";", but found ":"
C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(56) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\SOSNOVKA ROLE PLAY (SERVER)\gamemodes\sosnovka.pwn(56) : fatal error 107: too many error messages on one line

 

Спойлер

stock ConnectMysQL()
{
    dbHandle = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_BASE);
    switch mysql_error;
    {
    case 0: print("Ïîäêëþ÷åíèå ê MYSQL óñïåøíî");
    default: print("Ïîäêëþ÷èòüñÿ ê mysql íå óäàëîñü");
    }
    mysql_log(ALL);
    mysql_set_charset("cp1251");
}

 

 

Edited by Nekit_Krut18

Share this post


Link to post
Share on other sites

@SOSNOVKA RP switch mysql_error; замените на: 

switch (mysql_error)

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content