29.04.2014, 14:57
(
Последний раз редактировалось Riddick94; 29.04.2014 в 17:42.
)
Sorry for double, but it is important to me. I have no idea why it happens, btw. I have checked all my includes, no AppendArray Data in there.
Here's my server_log.txt:
That line:
Appears as soon as I connect to the server (OnPlayerConnect). I have debugged whole code, I even checked my older version of the gamemode (back ups) it's all the same. So, why the heck that happens?
"0" means my ID.
P.S
My includes:
edit://
OnPlayerDisconnect:
OnPlayerAttemptLogin:
I don't even know is that right, but error still appears.
edit2://
I have commented everything I had in my OnPlayerConnect and I have commented everything I had in my OnPlayerDisconnect, also I have commented OnGameModeInit stuff, so basically player is not going anywhere apart OnPlayerConnect & OnPlayerDisconnect callbacks.
I have added to those two callbacks code I had in my filterscript tested on my Debug server (where I did not receive the error). AND I still receive the error, even if the code is exactly the same as on the Debug server.
Anyone?
edit3:// IMPORTANT FIX
Okey fellas, I have downgraded my SA-MP server from 0.3z R2-2 to SA-MP 0.3z R1 (downloaded from SA-MP.com) and I don't receive any error anymore. So, please, Incognito if you could fix it? Thanks.
Here's my server_log.txt:
Код:
[16:07:59] Incoming connection: 127.0.0.1:61501 [16:07:59] OnIncomingConnection: 0 [16:07:59] [join] Riddick has joined the server (0:127.0.0.1) [16:07:59] OnPlayerConnect: 0 [16:08:00] OnPlayerConnectEx: 0 [16:08:00] OnPlayerSpawn: 0 [16:08:07] *** Audio Plugin: Incoming connecting from 127.0.0.1:52642 [16:08:07] *** Audio Plugin: Riddick (ID: 0) has connected [16:08:07] Audio_OnClientConnect: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:09] Audio_OnTransferFile: 0 [16:08:12] DIALOG_LOGIN: 0 [16:08:12] OnPlayerAttemptLogin: 0 [16:08:12] OnPlayerAttemptLogin #2: Riddick (0) [16:08:12] Riddick (UID: 1) just logged in. [16:08:24] OnPlayerDisconnect: 0 [16:08:24] *** Audio Plugin: Riddick (ID: 0) has disconnected [16:08:24] ClearPlayerData: 0 [16:08:24] [part] Riddick has left the server (0:1) [16:09:02] Incoming connection: 127.0.0.1:52383 [16:09:02] OnIncomingConnection: 0 [16:09:02] [join] Riddick has joined the server (0:127.0.0.1) [16:09:02] *** Streamer_AppendArrayData: Invalid ID specified [16:09:02] OnPlayerConnect: 0 [16:09:02] OnPlayerConnectEx: 0 [16:09:02] OnPlayerSpawn: 0 [16:09:10] *** Audio Plugin: Incoming connecting from 127.0.0.1:52649 [16:09:10] *** Audio Plugin: Riddick (ID: 0) has connected [16:09:10] Audio_OnClientConnect: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:11] Audio_OnTransferFile: 0 [16:09:13] DIALOG_LOGIN: 0 [16:09:13] OnPlayerAttemptLogin: 0 [16:09:13] OnPlayerAttemptLogin #2: Riddick (0) [16:09:13] Riddick (UID: 1) just logged in.
Код:
[16:09:02] *** Streamer_AppendArrayData: Invalid ID specified
"0" means my ID.
P.S
My includes:
pawn Код:
#include <a_samp>
#include <lookup>
#include <audio>
#include <sscanf2>
#include <foreach>
#include <streamer>
#include <a_mysql_R5>
#include <YSI\y_commands>
#include <YSI\y_groups>
OnPlayerDisconnect:
pawn Код:
if(IsValidDynamic3DTextLabel(PlayerData[playerid][E_PLAYER_NICK]))
{
Streamer_AppendArrayData(STREAMER_TYPE_3D_TEXT_LABEL, PlayerData[playerid][E_PLAYER_NICK], E_STREAMER_PLAYER_ID, INVALID_PLAYER_ID);
DestroyDynamic3DTextLabel(PlayerData[playerid][E_PLAYER_NICK]);
}
pawn Код:
new StringName[40];
format(StringName, sizeof(StringName),"%s (%d)", PlayerData[playerid][E_PLAYER_NAME], playerid);
PlayerData[playerid][E_PLAYER_NICK] = CreateDynamic3DTextLabel(StringName, COLOR_NICK, 0.0, 0.0, 0.12, 10.0, playerid, INVALID_VEHICLE_ID, true);
printf("OnPlayerAttemptLogin #2: %s", StringName);
Streamer_AppendArrayData(STREAMER_TYPE_3D_TEXT_LABEL, PlayerData[playerid][E_PLAYER_NICK], E_STREAMER_PLAYER_ID, playerid);
edit2://
I have commented everything I had in my OnPlayerConnect and I have commented everything I had in my OnPlayerDisconnect, also I have commented OnGameModeInit stuff, so basically player is not going anywhere apart OnPlayerConnect & OnPlayerDisconnect callbacks.
I have added to those two callbacks code I had in my filterscript tested on my Debug server (where I did not receive the error). AND I still receive the error, even if the code is exactly the same as on the Debug server.
Anyone?
edit3:// IMPORTANT FIX
Okey fellas, I have downgraded my SA-MP server from 0.3z R2-2 to SA-MP 0.3z R1 (downloaded from SA-MP.com) and I don't receive any error anymore. So, please, Incognito if you could fix it? Thanks.