Server Crash
#1

When i type some text or command my server crashes
I am making gamemode from 0

CRASHINFO:




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

SA-MP Server: 0.3c



Exception At Address: 0x004033BF



Registers:

EAX: 0x00000003 EBX: 0x00000007 ECX: 0x00080F74 EDX: 0x00000000

ESI: 0x00000000 EDI: 0x0012F638 EBP: 0x0012F638 ESP: 0x0012F5B0

EFLAGS: 0x00010202



Stack:

+0000: 0x01D66170 0x00000000 0x00000007 0x00482C21

+0010: 0x0012F638 0x00000000 0x00000000 0x00000007

+0020: 0x01D66170 0x0012F60C 0x00000033 0x01D66170

+0030: 0x00000000 0x01D66170 0x0012F610 0x0012F618

+0040: 0x0012F638 0x00000000 0x00000000 0x01D2F5B0

+0050: 0x0012F860 0x01D78488 0x00000000 0x00000001

+0060: 0x00490A3F 0x0049C298 0x00000000 0x00000033

+0070: 0x0012F86C 0x00A8AC90 0x3539AD01 0x0012F7AC

+0080: 0x0012F806 0x01D66170 0x73647361 0x00006164

+0090: 0x00000000 0x00000000 0x00000000 0x00000000

+00A0: 0x00000000 0x00000000 0x00000000 0x00000000

+00B0: 0x00000000 0x00000000 0x00000000 0x00000000

+00C0: 0x00000000 0x00000000 0x00000000 0x00000000

+00D0: 0x00000000 0x00000000 0x00000000 0x00000000

+00E0: 0x00000000 0x00000000 0x00000000 0x00000000

+00F0: 0x00000000 0x00000000 0x00000000 0x00000000

+0100: 0x00000000 0x00000000 0x00000000 0x00000000

+0110: 0x00000000 0x00000000 0x00000000 0x00000000

+0120: 0x00000000 0x00000000 0x00000000 0x00000000

+0130: 0x00000000 0x00000000 0x00000000 0x00000000

SERVER_LOG:



----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team

[07:47:51]
[07:47:51] Server Plugins
[07:47:51] --------------
[07:47:51] Loading plugin: streamer
[07:47:52]

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

[07:47:52] Loaded.
[07:47:52] Loading plugin: sscanf
[07:47:52]

[07:47:52] ===============================

[07:47:52] sscanf plugin loaded.

[07:47:52] © 2009 Alex "******" Cole

[07:47:52] ===============================

[07:47:52] Loaded.
[07:47:52] Loading plugin: audio
[07:47:52]

*** Audio Plugin v0.4 by Incognito loaded ***


[07:47:52] Loaded.
[07:47:52] Loaded 3 plugins.

[07:47:52]
[07:47:52] Filter Scripts
[07:47:52] ---------------
[07:47:52] Loading filter script 'Seifanims.amx'...
[07:47:52] Loaded 1 filter scripts.

[07:47:52]
[07:47:52] =======================================
[07:47:52] | |
[07:47:52] | YSI version 1.03.0011 |
[07:47:52] | By Alex "******" Cole |
[07:47:52] | |
[07:47:52] | Checking the latest YSI version.. |
[07:47:52] | |
[07:47:52] =======================================
[07:47:52]
[07:47:52]
Gamemode Pokrenut

[07:47:52] Number of vehicle models: 7
[07:47:53]
[07:47:53] ======================================
[07:47:53] | |
[07:47:53] | Congratulations! You are running |
[07:47:53] | the latest version of YSI! |
[07:47:53] | |
[07:47:53] ======================================
[07:47:53]
[07:48:18] Incoming connection: 5.173.57.53:2623
[07:48:18] [join] Vladimir_Lem has joined the server (0:5.173.57.53)
[07:48:42] [chat] [Vladimir_Lem]: asdsda
Reply
#2

Help?
Reply
#3

We need some code to be able to help you.
It might be misuse of sscanf or another function?
Reply
#4

Script? -.-
We're not telepathic ..
Reply
#5

LOL to upload whole gamemode from 0?

No way :S

EDIT: It is not because of sscanf.
Reply
#6

Quote:
Originally Posted by black_dota
Посмотреть сообщение
It is not because of sscanf.
No, I know that, but It might be because of you doing it wrong with sscanf, or another plugin or include.
Since It's crashing when you type text, lets start with that. Post your OnPlayerText part.
Reply
#7

All is working fine but when i spawn my server doesnt show textdraws, cars and other, so it isn't in OnPlayerText but whatever here it is:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new
        string[128];

    if(GetPVarInt(playerid, "Mute") == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR]: Ti si mute-ovan! Ne moћeљ govoriti.");
        return false;
    }
    if(realchat)
    {
        if(GetPVarInt(playerid, "Accent") == 1)
        {
            format(string, sizeof(string), "%s kaћe: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 2)
        {
            format(string, sizeof(string), "%s kaћe[Engleski]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 3)
        {
            format(string, sizeof(string), "%s kaћe[Ruski]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 4)
        {
            format(string, sizeof(string), "%s kaћe[Spanski]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 5)
        {
            format(string, sizeof(string), "%s kaћe[Mexicki]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 6)
        {
            format(string, sizeof(string), "%s kaћe[Americki]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 7)
        {
            format(string, sizeof(string), "%s kaћe[Gangsterski]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 8)
        {
            format(string, sizeof(string), "%s kaћe[Irski]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 9)
        {
            format(string, sizeof(string), "%s kaћe[Kolumbijski]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        else if(GetPVarInt(playerid, "Accent") == 10)
        {
            format(string, sizeof(string), "%s kaћe[Japanski]: %s", GetName(playerid), text);
            ProxDetector(playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4);
            return false;
        }
        return false;
    }
    return true;
}
EDIT: OPSpawn:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(GetPVarInt(playerid, "Logged") == 0)
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR]:"#COL_WHITE"Prvo se moraљ ulogovati zatim onda spawnati!");
        Kick(playerid);
    }
    else if(GetPVarInt(playerid, "Novi") == 1)
    {
        RandomSkin(playerid);
    }
    else
    {
        SetPlayerSkin(playerid, GetPVarInt(playerid, "Skin"));
        AC_GivePlayerMoney(playerid, GetPVarInt(playerid, "Money"));

        //      Custom Hud      //
        TextDrawShowForPlayer(playerid, CustomHUD0[playerid]);
        TextDrawShowForPlayer(playerid, CustomHUD1);
        TextDrawShowForPlayer(playerid, CustomHUD2);
        TextDrawShowForPlayer(playerid, CustomHUD3);
        TextDrawShowForPlayer(playerid, CustomHUD4);
        TextDrawShowForPlayer(playerid, CustomHUD5);
        TextDrawShowForPlayer(playerid, CustomHUD6);
        //      Custom Hud      //

        TextDrawShowForPlayer(playerid, RandomPoruke0);
        TextDrawShowForPlayer(playerid, RandomPoruke1);
        TextDrawShowForPlayer(playerid, RandomPoruke2);
        TextDrawShowForPlayer(playerid, RandomPoruke3);
        TextDrawShowForPlayer(playerid, PravilaRP);
       
        if(GetPVarInt(playerid, "House") > 0)
        {
            new
                hID = GetPVarInt(playerid, "House");
               
            SetPlayerPos(playerid, HouseInfo[hID][hExitX], HouseInfo[hID][hExitY], HouseInfo[hID][hExitZ]);
            SetPlayerInterior(playerid, HouseInfo[hID][hInt]);
            SetPlayerVirtualWorld(playerid, hID);
        }
        else if(GetPVarInt(playerid, "HRent") > 0)
        {
            new
                hID = GetPVarInt(playerid, "HRent");

            SetPlayerPos(playerid, HouseInfo[hID][hExitX], HouseInfo[hID][hExitY], HouseInfo[hID][hExitZ]);
            SetPlayerInterior(playerid, HouseInfo[hID][hInt]);
            SetPlayerVirtualWorld(playerid, hID);
        }
    }
    return true;
}
Reply
#8

H E L P
Reply
#9

Help?
Reply
#10

Change
pawn Код:
SendClientMessage(playerid, COLOR_RED, "[ERROR]:"#COL_WHITE"Prvo se moraš ulogovati zatim onda spawnati!");
to

pawn Код:
SendClientMessage(playerid, COLOR_RED, COL_WHITE, "Prvo se moraš ulogovati zatim onda spawnati!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)