Server don't turn on.
#1

Hello all. I have little problem, when i turn on my server, he didn't on. I GET NO ERRORS, ALL PLUGINS ON.

Reply
#2

Check the server_log.txt
Reply
#3

All is ok.
SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[16:49:37]
[16:49:37] Server Plugins
[16:49:37] --------------
[16:49:37] Loading plugin: mysql
[16:49:37] >> plugin.mysql: R39-2 successfully loaded.
[16:49:37] Loaded.
[16:49:37] Loading plugin: sscanf
[16:49:37]

[16:49:37] ===============================

[16:49:37] sscanf plugin loaded.

[16:49:37] Version: 2.8.1

[16:49:37] © 2012 Alex "******" Cole

[16:49:37] ===============================

[16:49:37] Loaded.
[16:49:37] Loading plugin: Whirlpool
[16:49:37]
[16:49:37] ==================
[16:49:37]
[16:49:37] Whirlpool loaded
[16:49:37]
[16:49:37] ==================
[16:49:37]
[16:49:37] Loaded.
[16:49:37] Loading plugin: nativechecker
[16:49:37] Loaded.
[16:49:37] Loaded 4 plugins.

[16:49:37]
[16:49:37] Filterscripts
[16:49:37] ---------------
[16:49:37] Loading filterscript 'fsdebug.amx'...
[16:49:37]
*********************
* SA:MP DEBUG 0.2 *
[16:49:37] * By Simon Campbell *
*********************
[16:49:37] * Version: 0.5d *
*********************
[16:49:37] * -- LOADED *
*********************

[16:49:37] Loading filterscript 'cameditor.amx'...
[16:49:37]
--------------------------------------
[16:49:37] CamEditor by Drebin
[16:49:37] --------------------------------------

[16:49:37] Loaded 2 filterscripts.

[16:49:37] Number of vehicle models: 0
Reply
#4

Can annyone help me?
Reply
#5

if you cant even send a message(t or f6 ) then show your onplayerconnect callback
cuz i suspect that you have an infinite loops at onplayerconnect
Reply
#6

public OnPlayerConnect(playerid)
{
new query[128]; //We use this variable to format our query
GetPlayerName(playerid, Name[playerid], 24); //Getting player's name
GetPlayerIp(playerid, IP[playerid], 16); //Getting layer's IP
new mquery[1200]; //We use this variable to format our query (Maro's query)
mysql_format(mysql, mquery, sizeof(mquery),"SELECT * FROM `Bans` WHERE `pBannedPlayer` = '%s' OR `pIP` = '%s'", PlayerName(playerid), IP[playerid]); //Selecting all form the ban list to check if the player name is in the ban list.
mysql_tquery(mysql, mquery, "ThreadBan", "i", playerid);
mysql_format(mysql, query, sizeof(query),"SELECT `Password`, `ID` FROM `players` WHERE `Username` = '%e' LIMIT 1", Name[playerid]);
// - We use mysql_format instead of format because we can use an %e specifier. %e specifier escapes a string so we can avoid sql injection which means we don't have to use mysql_real_escape_string
// - Formatting our query; SELECT `Password`, `ID` FROM `players` WHERE `Username`='%e' means we are selecting a Password and ID's column in the table that has player's name in Username column.
// - LIMIT 1; we only need 1 result to be shown
mysql_tquery(mysql, query, "OnAccountCheck", "i", playerid);

//lets execute the formatted query and when the execution is done, a callback OnAccountCheck will be called
//You can name the callback however you like
return 1;
}

//OnAccountCheck is a custom callback which means it has to be forwarded.
forward OnAccountCheck(playerid);

//Now once the query has been processed;
public OnAccountCheck(playerid)
{
new rows, fields; //a variable that will be used to retrieve rows and fields in the database.
cache_get_data(rows, fields, mysql);//let's get the rows and fields from the database.
if(rows) //if there is row
{//then
cache_get_field_content(0, "Password", pInfo[playerid][Password], mysql, 40);
//we will load player's password into pInfo[playerid][Password] to be used in logging in
pInfo[playerid][ID] = cache_get_field_content_int(0, "ID"); //now let's load player's ID into pInfo[playerid][ID] so we can use it later
printf("%s", pInfo[playerid][Password]); //OPTIONAL: Just for debugging. If it didn't show your password, then there must be something wrong while getting player's password
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "PRISIJUNGIMAS","Prisijunkite: {ff0000}(Įveskite slaptažodį ir niekam jo nesakykite!)", "Jungtis", "Išeiti");//And since we found a result from the database, which means, there is an account; we will show a login dialog
}
else //if we didn't find any rows from the database, that means, no accounts were found
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "REGISTRACIJA","Užsiregistruokite: {ff0000}(Įveskite jūsų sugalvotą slaptažodį ir niekam jo nesakykite!","Jungtis", "Išeiti");
//So we show them a dialog register
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)