samp-server.exe closes after I type 'gmx' in the cmd prompt
#1

So, when I go to test a feature, I'll type in 'gmx' and expect it to restart the server on the prompt, but instead it just closes the window. I'll have to re-open the prompt and everything will be fine. I have crashdetect and found this.

Код:
[18:45:10] Number of vehicle models: 0
Console input: gmx
[18:45:11] [debug] Server crashed while executing zombieoutbreak.amx
[18:45:11] [debug] AMX backtrace:
[18:45:11] [debug] #0 native tolower () [00404730] from samp-server.exe
[18:45:11] [debug] #1 00016544 in ?? () from zombieoutbreak.amx
[18:45:11] [debug] #2 0000bd10 in ?? () from zombieoutbreak.amx
[18:45:11] [debug] #3 00006418 in public OnGameModeExit () from zombieoutbreak.amx
[18:45:11] [debug] System backtrace:
[18:45:11] [debug] #0 74da5630 in ?? () from C:\Windows\syswow64\USER32.dll
[18:45:11] [debug] #1 74da559e in ?? () from C:\Windows\syswow64\USER32.dll
[18:45:11] [debug] #2 0040473e in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #3 6fe83c32 in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\plugins\crashdetect.DLL
[18:45:11] [debug] #4 6fe86076 in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\plugins\crashdetect.DLL
[18:45:11] [debug] #5 6fe7c05a in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\plugins\crashdetect.DLL
[18:45:11] [debug] #6 6fe83c5e in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\plugins\crashdetect.DLL
[18:45:11] [debug] #7 0046c6ec in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #8 0048a93f in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #9 74c91126 in ?? () from C:\Windows\syswow64\kernel32.dll
[18:45:11] [debug] #10 c4830000 in ?? ()
[18:45:11] [debug] #11 8b1e8904 in ?? ()
[18:45:11] [debug] #12 fb3b0c7e in ?? ()
[18:45:11] [debug] #13 cf8b1374 in ?? ()
[18:45:11] [debug] #14 fdc9c8e8 in ?? ()
[18:45:11] [debug] #15 fae857ff in ?? ()
[18:45:11] [debug] #16 8300009d in ?? ()
[18:45:11] [debug] #17 5e8904c4 in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #18 10468b0c in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #19 0c74c33b in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #20 9de7e850 in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #21 c4830000 in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #22 105e8904 in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #23 3b147e8b in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #24 8b1374fb in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #25 a86be8cf in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
[18:45:11] [debug] #26 e857fffd in ?? () from C:\Users\Tyler\Games\SA-MP\Zombie Outbreak Roleplay\samp-server.exe
I have no idea what this means. Can someone please tell me what this means?
Reply
#2

tolower somewhere in your script is crashing your server. Make sure you only put in a single character in tolower and not a whole string.
Reply
#3

I'm not sure what tolower is, but looked it up and saw it was something to deal with OnPlayerText, this is what's in it.

pawn Код:
new message[128];
    format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
    SendLocalMessage(playerid, WHITE, message);
    return 0;
This is GetName(playerid)

pawn Код:
stock GetName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}
And SendLocalMessage

pawn Код:
stock SendLocalMessage(playerid, color, string[])
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    foreach(Player, i)
    {
        if(IsPlayerConnected(i)) //&& GetPVarInt(i, "LoggedIn") == 1)
        {
            if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i) && GetPlayerInterior(playerid) == GetPlayerInterior(i))
            {
                if(IsPlayerInRangeOfPoint(i, 20, x, y, z))
                {
                    SendClientMessage(i, color, string);
                }
            }
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)