Well this is ...awkward !
#1

ok so for over 3 years now ive been slowly making a gamemode and all was going fine but then i updated to 0.3e and everythings fine all seems to work compiles blah blah blah but when myself or someone else types in the chat (normally) the server crashes? AWKWARD!
anyone got any idea's what could be causing this

ive even tryed downgrading it but since the 0.3e update my script doesn't want to know.

it's not plugins as when i take em out the same still happens.
Reply
#2

Post some logs, your includes, and your OnPlayerUpdate, and OnPlayerText.
Reply
#3

You might want to show us your OnPlayerText callback...
Could be some include or filterscript as well.
Reply
#4

the logs
Код:
SA-MP Dedicated Server
----------------------
v0.3c R5, ©2005-2011 SA-MP Team

[06:16:14] 
[06:16:14] Server Plugins
[06:16:14] --------------
[06:16:14]  Loading plugin: streamer.dll
[06:16:14] 

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[06:16:14]   Loaded.
[06:16:14]  Loading plugin: sscanf.dll
[06:16:14] 

[06:16:14]  ===============================

[06:16:14]       sscanf plugin loaded.     

[06:16:14]    © 2009 Alex "******" Cole

[06:16:14]    0.3d-R2 500 Players "dnee"

[06:16:14]  ===============================

[06:16:14]   Loaded.
[06:16:14]  Loading plugin: Whirlpool.dll
[06:16:14]  
[06:16:14]  ==================
[06:16:14]  
[06:16:14]   Whirlpool loaded
[06:16:14]  
[06:16:14]  ==================
[06:16:14]  
[06:16:14]   Loaded.
[06:16:14]  Loaded 3 plugins.

[06:16:14] 
[06:16:14] Filter Scripts
[06:16:14] ---------------
[06:16:14]   Loaded 0 filter scripts.

[06:16:14]  
[06:16:14]  ======================================= 
[06:16:14]  |                                     | 
[06:16:14]  |        YSI version 1.03.0011        | 
[06:16:14]  |        By Alex "******" Cole        | 
[06:16:14]  |                                     | 
[06:16:14]  |  Checking the latest YSI version..  | 
[06:16:14]  |                                     | 
[06:16:14]  ======================================= 
[06:16:14]  
[06:16:14] EnableTirePopping() function is removed.
[06:16:14] SA-MP Dedicated Server | v0.3c R5, ©2005-2011 SA-MP Team
[06:16:14]  
[06:16:14] Loading GameMode...
[06:16:14] Initalizing...
[06:16:14]  
[06:16:14]              Loading 00%
[06:16:14]                  Loading 25%
[06:16:14]                      Loading 50%
[06:16:14]                          Loading 75%
[06:16:14]                              Loaded 100%
[06:16:14]  
[06:16:14]                                    Initalized!
[06:16:14]  
[06:16:14]                             GameMode Loaded Successfully!
[06:16:14]  
[06:16:14]                    PCRP[Version 4.1] Made By Lookin Updated 20/08/2012
[06:16:14]                     Copyright © 2010 - 2012 LScripting Productions
[06:16:14]                                     Sponsored By
[06:16:14]                 Profound Gaming: Gaming So Intense, It's Considered Profanity!
[06:16:14]                              www.profoundgaming.weebly.com
[06:16:14]  
[06:16:14] Number of vehicle models: 182
[06:16:15] Weather changed to ID: 35
[06:16:35]  
[06:16:35]  ======================================= 
[06:16:35]  |                                     | 
[06:16:35]  |   Error: Could not connect to YSI   | 
[06:16:35]  |  update server (response was 006).  | 
[06:16:35]  |                                     | 
[06:16:35]  ======================================= 
[06:16:35]  
[06:18:55] Incoming connection: 192.168.1.3:55287
[06:18:55] [join] [PG]Lookin has joined the server (0:192.168.1.3)
[06:19:01] [PG]Lookin has registered an account.
[06:19:17] [chat] [[PG]Lookin]: hi
the includes
Код:
#include <a_samp>
#include <streamer>
#include <zcmd>
#include <sscanf2>
#include <time>
#include <gLibrary>
onplayerupdate
Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerState(playerid)==PLAYER_STATE_ONFOOT)
	{
		new weaponid=GetPlayerWeapon(playerid),oldweapontype=GetWeaponType(OldWeapon[playerid]);
		new weapontype=GetWeaponType(weaponid);
		if(HoldingWeapon[playerid]==weaponid)
		    StopPlayerHoldingObject(playerid);

		if(OldWeapon[playerid]!=weaponid)
		{
		    new modelid=GetWeaponModel(OldWeapon[playerid]);
		    if(modelid!=0 && oldweapontype!=WEAPON_TYPE_NONE && oldweapontype!=weapontype)
		    {
		        HoldingWeapon[playerid]=OldWeapon[playerid];
		        switch(oldweapontype)
		        {
		            case WEAPON_TYPE_LIGHT:
						SetPlayerHoldingObject(playerid, modelid, 8,0.0,-0.1,0.15, -100.0, 0.0, 0.0);

					case WEAPON_TYPE_MELEE:
					    SetPlayerHoldingObject(playerid, modelid, 7,0.0,0.0,-0.18, 100.0, 45.0, 0.0);

					case WEAPON_TYPE_HEAVY:
					    SetPlayerHoldingObject(playerid, modelid, 1, 0.2,-0.125,-0.1,0.0,25.0,180.0);
		        }
		    }
		}

		if(oldweapontype!=weapontype)
		OldWeapon[playerid]=weaponid;
	}
	if(!IsPlayerConnected(playerid)) return 0;

	// No weapons in interiors
	if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
	    SetPlayerArmedWeapon(playerid,0); // fists
	    return 0; // no syncing until they change their weapon
	}

/*	// Don't allow minigun
	if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
	    Kick(playerid);
	    return 0;
	}*/

	/* No jetpacks allowed
	if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
	    Kick(playerid);
	    return 0;
	}*/
	
	SetPlayerScore( playerid, GetPlayerWantedLevel( playerid ) );
/* 	if ( GetPlayerWantedLevel( playerid ) > 0 )
  	SetPlayerScore( playerid, GetPlayerWantedLevel( playerid ) );*/
//	return 1;
//	}
	return 1;
}
thats it onplayertext is empty btw
Reply
#5

So, if i understand right, you said you updated your script to 0.3e?
Why does the log say: v0.3c R5
Download the 0.3e package again, unzip it in your servers folder, and allow overwrite..
Reply
#6

i said and i quote
Quote:

ive even tryed downgrading it but since the 0.3e update my script doesn't want to know.

so i have already tryed that many times 3c was the original version i had it on before 3e i put 3e in it stop working so i tryed downgrading to see if that helps and no luck
Reply
#7

Try removing all filterscripts and try then.
Reply
#8

tryed it but no luck =(
Reply
#9

bumping as its been over 24 hours
Reply
#10

Make sure all your pawno includes are updated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)