PDA

Просмотр полной версии : [Вопрос] по чату



diamonds
16.08.2014, 05:09
В общем у меня сервер на хостинге (Linux) вот на нем проблема в том что все пишут в общий чат. А когда я запуская сервер на Windows у себя на компе - то все нормально realchat (чтобы на расстояние виден был текст) работает и анимки работают...
1. на винде запущен
http://radikall.com/images/2014/08/16/6CBYU.jpg
2. на Linux запущен
http://radikall.com/images/2014/08/16/BnqWY.jpg


if(realchat)
{
if(gPlayerLogged[playerid] == 0) { return false; }
if(PlayerInfo[playerid][pMuted] == 1)
{
format(stringer, sizeof(stringer), "У Вас бан чата! До снятия: %d секунд(ы)",PlayerInfo[playerid][pMuteTime]);
SendClientMessage(playerid, COLOR_LIGHTRED, stringer);
return false;
}
if(gag[playerid] == true) { SendClientMessage(playerid, COLOR_LIGHTRED, "У Вас кляп, вы не можете говорить!"); return false; }
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && robbankstime[playerid] == 0 && PlayerTied[playerid] == 0 && PlayerCuffedTime[playerid] == 0)
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1,1);
clearanim[playerid] = 3;
}
format(stringer, sizeof(stringer), "- %s[%d]: %s", PlayerInfo[playerid][pNames],playerid, text);
SetPlayerChatBubble(playerid, text, 0x6ab1ffaa, 20.0, 10000);
ProxDetector(20.0, playerid, stringer,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return false;
}
return false;
}




Моя база данных сервера.. может в ней проблемс..

http://rghost.ru/57492580

кто сможет помочь в скайпе - diamondscnn

DeimoS
16.08.2014, 16:28
Crashdetect подключите, создайте в папке с Pawno файл "pawn.cfg", в него пропишите "-d3" и сохраните. После перекомпилируйте мод, залейте на хостинг и после написания в чат скиньте логи

diamonds
16.08.2014, 17:51
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z-R4, (C)2005-2014 SA-MP Team

[16:51:38]
[16:51:38] Server Plugins
[16:51:38] --------------
[16:51:38] Loading plugin: streamer.so
[16:51:39]

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

[16:51:39] Loaded.
[16:51:39] Loading plugin: sscanf.so
[16:51:39]

[16:51:39] ===============================

[16:51:39] sscanf plugin loaded.

[16:51:39] Version: 2.8.1

[16:51:39] (c) 2012 Alex "Y_Less" Cole

[16:51:39] ===============================

[16:51:39] Loaded.
[16:51:39] Loading plugin: mysql.so
[16:51:39] >> plugin.mysql: R34 successfully loaded.
[16:51:39] Loaded.
[16:51:39] Loading plugin: crashdetect.so
[16:51:39] CrashDetect v4.13.1-lse is OK.
[16:51:39] Loaded.
[16:51:39] Loaded 4 plugins.

[16:51:39]
[16:51:39] Filterscripts
[16:51:39] ---------------
[16:51:39] Loading filterscript 'anti-ddos.amx'...
[16:51:39]

[16:51:39] DoS-Prottection - успешно загружен!
[16:51:39] Loading filterscript 'AntiDDos_NeWl.amx'...
[16:51:39] |__________AntiDos_______________________________|
[16:51:39] | |
[16:51:39] | v5.0 |
[16:51:39] | |
[16:51:39] | >>>AntiDDos by Denis_Kuzan Успешно запушен<<< |
[16:51:39] | |
[16:51:39] | |
[16:51:39] |_________AntiDos________________________________|
[16:51:39] Loading filterscript 'no_ddos.amx'...
[16:51:39] Loaded 3 filterscripts.

[16:51:39]
[16:51:39]
[16:51:39]
[16:51:39] =======================================
[16:51:39] | |
[16:51:39] | YSI version 1.06.0002 |
[16:51:39] | By Alex "Y_Less" Cole |
[16:51:39] | |
[16:51:39] =======================================
[16:51:39]
[16:51:39] GANGZONE 0
[16:51:39] GANGZONE 0
[16:51:39] GANGZONE 0
[16:51:39] GANGZONE 0
[16:51:39] GANGZONE 0
[16:51:39] Подключение к базе успешно
[16:51:39] ===============================================================================
[16:51:39] подключение успешно установлено
[16:51:39] ===============================================================================
[16:51:39]
[16:51:39] Number of vehicle models: 72
[16:51:39] [debug] Run time error 4: "Array index out of bounds"
[16:51:39] [debug] Accessing element at index 30 past array upper bound 29
[16:51:39] [debug] AMX backtrace:
[16:51:39] [debug] #0 000bf3bc in public LoadSBizz () from koka.amx
[16:51:39] [debug] Run time error 4: "Array index out of bounds"
[16:51:39] [debug] Accessing element at index 16 past array upper bound 15
[16:51:39] [debug] AMX backtrace:
[16:51:39] [debug] #0 000bc224 in public LoadBizz () from koka.amx
[16:51:39] [debug] Run time error 4: "Array index out of bounds"
[16:51:39] [debug] Accessing element at index 3 past array upper bound 2
[16:51:39] [debug] AMX backtrace:
[16:51:39] [debug] #0 000b8994 in public LoadAvto () from koka.amx
[16:51:39] [debug] Run time error 4: "Array index out of bounds"
[16:51:39] [debug] Accessing element at index 2000 past array upper bound 1999
[16:51:39] [debug] AMX backtrace:
[16:51:39] [debug] #0 000baad0 in public LoadProperty () from koka.amx
[16:51:39]
[16:51:39] ==========================================
[16:51:39] | |
[16:51:39] | A new version (v3.09.0684) of YSI is |
[16:51:39] | available from: |
[16:51:39] | |
[16:51:39] | www.y-less.com/YSI/YSI_1.0.zip |
[16:51:39] | |
[16:51:39] | Changelog: |
[16:51:39] | |
[16:51:39] | 3.00.0000: |
[16:51:39] | |
[16:51:39] | YSI 3.0 released! Now includes the |
[16:51:39] | "y_text" library for better messages, |
[16:51:39] | and a reworked "y_classes" library. |
[16:51:39] | Largely documented here |
[16:51:39] | "http://forum.sa-mp.com/showthread.php |
[16:51:39] | ?t=321092". |
[16:51:39] | |
[16:51:39] | 3.01.0002: |
[16:51:39] | |
[16:51:39] | Small fixes to "y_text" and |
[16:51:39] | "y_classes". |
[16:51:39] | |
[16:51:39] | 3.09.0684: |
[16:51:39] | |
[16:51:39] | Reverted to old download location. |
[16:51:39] | Improved (and fixed) version checks; |
[16:51:39] | added y_bitmap, y_areas, y_races, |
[16:51:39] | y_zonenames, better documentation; |
[16:51:39] | MANY other bug fixes - see the github |
[16:51:39] | repository for more details: |
[16:51:39] | |
[16:51:39] ==========================================
[16:51:39]
[16:53:05] Incoming connection: 5.141.200.92:42357
[16:53:05] [join] Johnny_Beast has joined the server (0:5.141.200.92)
[16:53:05] Игрок Johnny_Beast подключился. Скорость 86509 , Остаток 0
[16:53:05] OnPlayerConnect
[16:53:16] OnPlayerRequestClass
[16:53:16] Игрок Johnny_Beast спавнился в очереди 100
[16:53:28] [chat] [Johnny_Beast]: написал в чат

DeimoS
16.08.2014, 18:36
Паблики LoadSBizz и LoadAvto в студию

diamonds
16.08.2014, 23:11
publics: LoadSBizz()
{
static rows, fields;
cache_get_data(rows, fields);
new temp[64],string2[360],i=0;
if(rows)
{
for(new he = 0;he < rows; he++)
{
cache_get_row(he, 0, temp), SBizzInfo[he][sID] = strval(temp);
cache_get_row(he, 1, temp), SBizzInfo[he][sOwned] = strval(temp);
cache_get_row(he, 2, temp), strmid(SBizzInfo[he][sOwner], temp, 0, strlen(temp), 255);
cache_get_row(he, 3, temp), strmid(SBizzInfo[he][sMessage], temp, 0, strlen(temp), 255);
cache_get_row(he, 4, temp), SBizzInfo[he][sEntranceX] = floatstr(temp);
cache_get_row(he, 5, temp), SBizzInfo[he][sEntranceY] = floatstr(temp);
cache_get_row(he, 6, temp), SBizzInfo[he][sEntranceZ] = floatstr(temp);
cache_get_row(he, 7, temp), SBizzInfo[he][sBuyPrice] = strval(temp);
cache_get_row(he, 8, temp), SBizzInfo[he][sLocked] = strval(temp);
cache_get_row(he, 9, temp), SBizzInfo[he][sPrice] = strval(temp);
cache_get_row(he, 10, temp), SBizzInfo[he][sBenz] = strval(temp);
cache_get_row(he, 11, temp), SBizzInfo[he][sPriceBenz] = strval(temp);
cache_get_row(he, 11, temp), SBizzInfo[he][sTill] = strval(temp);
i++;
if(SBizzInfo[he][sOwned] == 0)
{
//
SBizzInfo[he][sBuyPrice] = 1000000;
SBizzInfo[he][sOwned] = 0;
SBizzInfo[he][sLocked] = 1;
SBizzInfo[he][sPrice] = 2500;
SBizzInfo[he][sBenz] = 2500;
SBizzInfo[he][sPriceBenz] = 2500;
SBizzInfo[he][sTill] = 100000;
//
format(string2, sizeof(string2), "[id %d]\n\nзаправка\n''%s''\nпродается\n\nцена %d вирт\n\n[введите /buyfuel для покупки]",SBizzInfo[he][sID],SBizzInfo[he][sMessage],SBizzInfo[he][sBuyPrice]);
}
else
{
if(SBizzInfo[he][sLocked] == 0) format(string2, sizeof(string2), "{FFFF00}%s\n{FFFFFF}Владелец: {32CD32}%s\nБензин: %d/10000\nСтоимость: %d вирт.\n\n{FFFFFF}[{32CD32}Заправка работает{FFFFFF}]",SBizzInfo[he][sMessage],SBizzInfo[he][sOwner],SBizzInfo[he][sBenz],SBizzInfo[he][sPriceBenz]);
else format(string2, sizeof(string2), "{FFFF00}%s\n{FFFFFF}Владелец: {32CD32}%s\nБензин: %d/10000\nСтоимость: %d вирт.\n\n{FFFFFF}[{FF0000}Заправка не работает{FFFFFF}]",SBizzInfo[he][sMessage],SBizzInfo[he][sOwner],SBizzInfo[he][sBenz],SBizzInfo[he][sPriceBenz]);
}
SBizzInfo[he][sLabel] = Create3DTextLabel(string2,COLOR_YELLOW,SBizzInfo[he][sEntranceX], SBizzInfo[he][sEntranceY], SBizzInfo[he][sEntranceZ],20.0,0,1);
SBizzInfo[he][sIcon] = CreateDynamicMapIcon(SBizzInfo[he][sEntranceX], SBizzInfo[he][sEntranceY], SBizzInfo[he][sEntranceZ], 42, COLOR_WHITE, 0, -1, -1, 50.0);
}
printf("===============================================================================");
printf("[Загрузкa]\tLoadSBizz\t\t|\tЗагружено %d",i);
}
else printf("сБизнесов не загружены.");
return true;
}







LoadAvto нету...

DeimoS
17.08.2014, 11:04
А крашдетект считает иначе

#0 000b8994 in public LoadAvto () from koka.amx
И так же паблик LoadProperty нужен и LoadBizz.
И объявление SBizzInfo покажите (вместе с enum)

underwoker
26.08.2014, 23:59
Два разных сервера по скринам. Там есть иконки домов, тут нет. Зачемто замазали имя сервера, и ип. Но все равно видно что ип разный.

- - - Добавлено - - -


Два разных сервера по скринам. Там есть иконки домов, тут нет. Зачемто замазали имя сервера, и ип. Но все равно видно что ип разный.
А ну, спутал, вин и лин. Делит мой пост.