Deo skripte: Registracija problem
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Ma jok
Slika/video ingame problema(obavezno ako je ingame problem): /
//=================================[ Defines ]====================================
#define MYSQL_HOST "sql3.e-gear.net"
#define MYSQL_USER "eUser24701"
#define MYSQL_PASS "gny9fxcpj08mb5vd"
#define MYSQL_DB "bpnacija"
new _dbConnector, sql_str[ 128 ];
//=================================[ Stocks ]====================================
stock Mysql_Connect() {
_dbConnector = mysql_connect( MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS, 3306, true );
if( mysql_errno( _dbConnector ) != 0 ){
return printf("Neuspesna konekcija %s@%s -> %s", MYSQL_USER, MYSQL_HOST, MYSQL_DB);
} else {
printf("Konekcija uspesna %s@%s -> %s", MYSQL_USER, MYSQL_HOST, MYSQL_DB);
mysql_tquery( _dbConnector, "UPDATE `users` SET `isonline` = 0 WHERE `user_id` > 0" );
return true;
}
}
//=================================[ ALS ]====================================
public OnGameModeInit( )
{
Mysql_Connect();
#if defined als_mysql_OnGameModeInit
return als_mysql_OnGameModeInit( );
#else
return 1;
#endif
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit als_mysql_OnGameModeInit
#if defined als_mysql_OnGameModeInit
forward als_mysql_OnGameModeInit( );
#endif
public OnGameModeExit( )
{
mysql_close(_dbConnector);
#if defined als_mysql_OnGameModeExit
return als_mysql_OnGameModeExit( );
#else
return 1;
#endif
}
#if defined _ALS_OnGameModeExit
#undef OnGameModeExit
#else
#define _ALS_OnGameModeExit
#endif
#define OnGameModeExit als_mysql_OnGameModeExit
#if defined als_mysql_OnGameModeExit
forward als_mysql_OnGameModeExit( );
#endif
//=================================[ END OF MODULE ]====================================Takodje ovo su errori
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(15) : error 017: undefined symbol "mysql_connect"
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(16) : error 017: undefined symbol "mysql_errno"
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(17) : error 017: undefined symbol "printf"
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(20) : error 017: undefined symbol "printf"
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(21) : error 017: undefined symbol "mysql_tquery"
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(29) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(49) : warning 235: public function lacks forward declaration (symbol "OnGameModeExit")
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(51) : error 017: undefined symbol "mysql_close"
C:\Users\Sandra\Documents\SAMP GM\Meanwhile\gamemodes\modules\mysql.pwn(9) : warning 203: symbol is never used: "sql_str"
Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
*Napomena da znam fiks ovo nebi trazio pomoc + nisam nikada koristio skriptu niti ista* Lik koji to radi trenutno je na odsustvo a ja ocu da fiksam ovo da otvorimo da igramo i prvi put imam dodir s ovim