Здравствуйте, возникает ошибка:
C:\Users\uran3\Desktop\ProjectM\gamemodes\projectm.pwn(39) : error 010: invalid function or declaration
C:\Users\uran3\Desktop\ProjectM\gamemodes\projectm.pwn(68) : warning 217: loose indentation
C:\Users\uran3\Desktop\ProjectM\gamemodes\projectm.pwn(61) : warning 204: symbol is assigned a value that is never used: "dbHandle"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Буду благодарен, если поможете...
#include <a_samp>
#include <fix>
#include <a_mysql>
#include <streamer>
#include <dc_cmd>
#include <sscanf2>
#include <foreach>
#include <Pawn.Regex>
#define MYSQL_HOST "localhost"
#define MYSQL_USER "root"
#define MYSQL_PASS ""
#define MYSQL_BASE "projectm"
main()
{
print("\n----------------------------------");
print(" projectm ");
print("----------------------------------\n");
}
//************************* ***************************
// ------------------------------------------------------------
new MySQL:dbHandle;
// ---------------------------------------------------------------
//*****************************************************************
enum player
{
ID,
NAME[MAX_PLAYER_NAME],
PASSWORD[24],
}
[MAX_PLAYERS][player];
enum dialogs
{
DLG_NONE,
DLG_REG,
DLG_LOG,
}
public OnGameModeInit()
{
ConnectMySQL();
return 1;
}
stock ConnectMySQL()
{
dbHandle = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_BASE);
switch (mysql_errno())
{
case 0: print("connected");
default: print("not connected");
}
mysql_log(ERROR | WARNING);
mysql_set_charset("cp1251");
}