27.01.2019, 14:41
OnGamemodeInit:
Mudei o static para new apareceram os seguintes erros:
PHP код:
// -------------------------------------------------------- //
mysql_global_options(DUPLICATE_CONNECTIONS, true);
IDConexao = mysql_connect(HOST, USUARIO, SENHA, DATABASE);
print("\n-----------------------------------------------------------\n");
if(mysql_errno(IDConexao) != 0) print("> Falha ao conectar o banco de dados MySQL '"DATABASE"'!\n");
else print("> Banco de dados MySQL '"DATABASE"' conectado com sucesso!\n");
print("-----------------------------------------------------------\n");
PHP код:
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(83365) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(83365) : error 017: undefined symbol "PRECOS"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(83365) : warning 215: expression has no effect
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(83365) : error 001: expected token: ";", but found ")"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(83365) : fatal error 107: too many error messages on one line
Linha do erro: mysql_query(IDConexao, "SELECT * FROM `"PRECOS"`");