PDA

View Full Version : Need Some Help!


myandyou
01/01/2012, 12:46 PM
If I start my server is nothing wrong,
but if i connect it shut down

This is my server log.


SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[13:35:01] filterscripts = "" (string)
[13:35:01] weburl = "www.sa-mp.com" (string)
[13:35:01]
[13:35:01] Server Plugins
[13:35:01] --------------
[13:35:01] Loaded 0 plugins.

[13:35:01]
[13:35:01] Filterscripts
[13:35:01] ---------------
[13:35:01] Loaded 0 filterscripts.

[13:35:01]

-----------------------------------------

[13:35:01] ------ ------

[13:35:01] ------ 1 ------

[13:35:01] -----------------------------------------


[13:35:01] Number of vehicle models: 78
[13:35:31] Incoming connection: 192.168.0.105:56177
[13:35:31] [join] [Pprs]Gangmember211 has joined the server (0:192.168.0.105)

i think it shutdown when it loads OnplayerRequestClass

but i dont have any warnings ore errors

what to do?

CrnaStrela
01/01/2012, 12:47 PM
hawe you mabye chect thet the server is 0.3d not 0.3c ??

myandyou
01/01/2012, 12:51 PM
SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

its the v0.3d

wildcookie007
01/01/2012, 01:05 PM
show us your onplayerconnect code

myandyou
01/01/2012, 02:01 PM
public OnPlayerConnect( playerid )
{
new playrname[ MAX_PLAYER_NAME ], string[ 256 ];

SetPlayerColor( playerid, COLOR_INACTIVE );
GameTextForPlayer(playerid,"~y~Welcome To~n~~w~Los Santos~n~~w~Turf Wars",4500,1);
SendClientMessage( playerid, COLOR_RED, "This is a Turf-war Server Dont Cheat or hack!!" );
SendClientMessage( playerid, COLOR_RED, "You may helikill" );
SendClientMessage( playerid, COLOR_YELLOW, "use /cmds for information" );
SendClientMessage(playerid, COLOR_YELLOW, "Type /anims for view the list of animations!");
SendClientMessage( playerid, COLOR_YELLOW, "================================================== =========" );

GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "<TurfWarServer> %s(ID: %d) has joined the Turf War server.", playrname, playerid);
SendClientMessageToAll( COLOR_INACTIVE, string );

SendClientMessage(playerid, COLOR_GREEN, "Loading Server...");

// SendDeathMessage( INVALID_PLAYER_ID, playerid, 200 ); // Connect message in kill chart

playerCheckpoint[ playerid ] =999;
SetPlayerWantedLevel( playerid, 0 );
TeamKills[ playerid ] =0;
Spawned [ playerid ] =0;
ShowPM[ playerid ] =0;
ShowTPM[ playerid ] =0;
PlayerOnDuty[ playerid ]=0;
lTMoney[ playerid ] = 0;
lSMoney[ playerid ] = 0;

weapon[playerid]=0;
kills[playerid]=0;
won[playerid]=0;




GetPlayerName(playerid, playrname, sizeof(playrname));
for(new i = 0; i < MAX_SAVE; i++) {

if(isStringSame(savedNames[i], playrname, MAX_PLAYER_NAME)) {
bounty[playerid] = savedInfo[i][0];

savedInfo[i][0]=savedInfo[i][1]=0;
savedNames[i][0]=0;

for(new j = 0; j < MAX_WEAPONS; j++) {
playerWeapons[playerid][j]=savedWeapons[i][j];
savedWeapons[i][j]=0;
}
}
}

for (new i = 0; i < MAX_TURFS; i++) GangZoneShowForPlayer(playerid, turfs[ i ][turfID], turfs[ i ][TurfColor]);

return 1;
}

myandyou
01/01/2012, 02:09 PM
Does max turfs still work in 0.3D?