Server Crashes on Spawn/Connect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server Crashes on Spawn/Connect (
/showthread.php?tid=226428)
Server Crashes on Spawn/Connect -
Criss_Angel - 15.02.2011
As soon as i connect the server.exe just closes, i checked the logs just says Player Joined the server and thats it.What is this?
Re: Server Crashes on Spawn/Connect -
Stigg - 15.02.2011
All you need is located here:
https://sampwiki.blast.hk/
Peace...
Re: Server Crashes on Spawn/Connect -
Criss_Angel - 15.02.2011
I'm Currently searching, so far nothing.
Re: Server Crashes on Spawn/Connect -
Ash. - 15.02.2011
Show us ALL your OnPlayerConnect code. There is a function that is, well, failing.
Re: Server Crashes on Spawn/Connect -
Criss_Angel - 15.02.2011
pawn Код:
public OnGameModeInit()
{
mysql_init();
if(!mysql_connect("localhost", "rayyan","k","rayyan_westside"))
{
print("\n MySQL Connection Failed, Now on Offline Mode\n");
Offline = 1;
}
else
{
Offline = 0;
}
SetTimer("ServerUpdate",120000, true);
SetGameModeText("WS-RPG2");
for(new i = 0; i < MAX_PLAYERS; i++)
{
BankTimer = SetTimerEx("BankCheck", 1000, true, "i", i);
timetimer = SetTimerEx("TimeUpdate", 60000, true, "i", i);
//SetTimer("LoadCars", 2500, false);
//SetTimerEx("IsAtGasStation",2000,1,"i",i);
}
for(new i=0;i<MAX_VEHICLES;i++) {
fuel[i] = 100; //sets every car's fuel to 100 in a loop
}
SetTimer("timer_fuel_lower",4200,true); //sets the timer to drop the fuel
print("[ ! ] Fuel Bar Loaded");
LimitGlobalChatRadius(30);
SetWorldTime(5);
ghour = 5;
gminute = 0;
gsecond = 1;
The rest is AddPlayerClass, Vehilce
Re: Server Crashes on Spawn/Connect -
Ash. - 15.02.2011
How is your mysql code executing? Try printing something (print) after mysql_init(); - otherwise i dont see whats wrong.
Re: Server Crashes on Spawn/Connect -
Criss_Angel - 15.02.2011
IT shows that "MySQL Connection Failed" Thing
Re: Server Crashes on Spawn/Connect -
Ash. - 15.02.2011
Try printing after your if block then, or add prints after every line to see where it stops.
Re: Server Crashes on Spawn/Connect -
Criss_Angel - 16.02.2011
I think it maybe my onplayerconnect.Ill post here:
pawn Код:
public OnPlayerConnect(playerid)
{
if(Offline == 1)
{
OfflineLogin(playerid);
return 0;
}
After that its my MySQL Check which doesnt execute cos its Offline
Re: Server Crashes on Spawn/Connect -
Criss_Angel - 21.02.2011
48 HOUR BUMP!Please help, its not the mysql i think.