Gamemode unknown
#1

I tried fixing up my old script, but it's just not working at all.
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[03:41:33] filterscripts = ""  (string)
[03:41:33] 
[03:41:33] Server Plugins
[03:41:33] --------------
[03:41:33]  Loading plugin: sscanf
[03:41:33] 

[03:41:33]  ===============================

[03:41:33]       sscanf plugin loaded.     

[03:41:33]          Version:  2.8.1        

[03:41:33]    © 2012 Alex "******" Cole  

[03:41:33]  ===============================

[03:41:33]   Loaded.
[03:41:33]  Loading plugin: Whirlpool
[03:41:33]  
[03:41:33]  ==================
[03:41:33]  
[03:41:33]   Whirlpool loaded
[03:41:33]  
[03:41:33]  ==================
[03:41:33]  
[03:41:33]   Loaded.
[03:41:33]  Loading plugin: streamer
[03:41:33] 

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

[03:41:33]   Loaded.
[03:41:33]  Loading plugin: crashdetect
[03:41:33]   crashdetect v4.8.5 is OK.
[03:41:33]   Loaded.
[03:41:33]  Loading plugin: mysql
[03:41:33]  >> plugin.mysql: running on 2 threads.
[03:41:33]  >> plugin.mysql: R27 successfully loaded.
[03:41:33]   Loaded.
[03:41:33]  Loaded 5 plugins.

[03:41:33] 
[03:41:33] Filterscripts
[03:41:33] ---------------
[03:41:33]   Loaded 0 filterscripts.

[03:41:33]  
[03:41:33]  
[03:41:33]  
[03:41:33]  ======================================= 
[03:41:33]  |                                     | 
[03:41:33]  |        YSI version 3.09.0684        | 
[03:41:33]  |        By Alex "******" Cole        | 
[03:41:33]  |                                     | 
[03:41:33]  ======================================= 
[03:41:33]  
[03:41:33]  
[03:41:33]  
[03:41:33] 
----------------------------------
[03:41:33]  hello africa
[03:41:33] ----------------------------------

[03:41:33] Number of vehicle models: 6
Console input: exit
[03:41:34] --- Server Shutting Down.
[03:41:34] 

[03:41:34]  ===============================

[03:41:34]      sscanf plugin unloaded.    

[03:41:34]  ===============================

[03:41:34]  
[03:41:34]  ====================
[03:41:34]  
[03:41:34]   Whirlpool unloaded
[03:41:34]  
[03:41:34]  ====================
[03:41:34]  
[03:41:34] 

*** Streamer Plugin v2.6.1 by Incognito unloaded ***

[03:41:34] plugin.mysql: Unloading plugin...
[03:41:34] plugin.mysql: Plugin unloaded.
The server log looks normal as well. I don't know what's causing this. When I get inside the game I'm just looking at the ocean for a brief moment then the server closes the connection. Help is very appreciated.
Reply
#2

Try adding this to the script: SetGameModeText("GAMEMODE NAME");
Reply
#3

are you missing the main() code in the gamemode script?
Reply
#4

main() is there and it prints the text it's supposed to in the console.
That's not the issue, Mattakil.
Reply
#5

Would you mind to show us your OnPlayerConnect?
Reply
#6

pawn Код:
public OnPlayerConnect(playerid)
{
    SCM(playerid, -1, "test");
    resetPlayerVariables(playerid);
    SPEEDO[playerid] = TextDrawCreate(10.0,200.0," ");
    TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
    /*if(!IsRolePlayName(playerid))
    {
        defer syncTimer(playerid);
        return 1;
    }*/

    nameTag[playerid] = CreateDynamic3DTextLabel("blabla", 0, 0.0, 0.0, 0.0, 5.0, 0, 0);
    TogglePlayerSpectating(playerid, true);
    loginTries[playerid] = 3;
    GetPlayerIp(playerid, pInfo[playerid][pIP], 16);
   
    SetSpawnInfo(playerid, 0, 52, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    /*new szName[MAX_PLAYER_NAME+1], szQuery[400], pName[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, pName, sizeof(pName));
    mysql_real_escape_string(pName, szName);
    format(szQuery, sizeof(szQuery), "SELECT * FROM `Accounts` WHERE `Username` = '%s'", szName);
    mysql_function_query(dbHandle, szQuery, true, "thread_checkAccount", "d", playerid);*/

    return 1;
}
Код:
[14:33:56] {FFFFFF}SA-MP {B9C9BF}0.3x-R1-2 {FFFFFF}Started

[14:33:59] Connecting to 127.0.0.1:7777...

[14:34:00] Connected. Joining the game...

[14:34:00] test

[14:34:03] Connected to {B9C9BF}SA-MP 0.3 Server

[14:34:03] Server closed the connection.
^IG log.
Reply
#7

I guess it kicks the player, try searching (Ctrl + F) for "Kick" and look if it has anything to do with it.
Reply
#8

Oh yeah, it kicked you if you didn't log in and still managed to spawn, and since I had commented out the login part, you got kicked.

Now I'm not being spawned, however. I'm just watching the ocean, I can submit commands however. :S
edit: The picture was huge, go here instead.
http://i.imgur.com/lPbgupw.png
edit2: This is what happens when I set my pos, VW and interior ID using a command.. I don't even know, I'm flying upwards.
http://i.imgur.com/p034DQQ.png
Reply
#9

Any ideas?
Reply
#10

Yes, you're in spectating mode.
Use:
pawn Код:
TogglePlayerSpectating(playerid, 0);
to toggle the spectating to off.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)