[Plugin] Streamer Plugin

I have problem on Centos.
Server freezeing after loading plugin.
Reply

Quote:
Originally Posted by kaZax
Посмотреть сообщение
I have problem on Centos.
Server freezeing after loading plugin.
My server crashes on start up SOMETIMES.
Reply

Who can compile plugin for CentOS?
Reply

Anyway to use AttachDynamicObjectToObject without YSF? Possibly a different plugin that fixes the problem? YSF seems to conflict with my gamemode.
Reply

Could anybody explain me, why the object is showing up, when I am in a different distance (closer) than I have specified in my code?

188 meters away from object.


187 meters away from object.


In OnGameModeInit:
Quote:

CreateDynamicObject(11439, 2603.85693, -1932.16260, 4.26190, 0.00000, 0.00000, -90.12000, 0, 0, -1, 2000.0, 2000.0);

Version streamer: 2.7.7
SAMP 0.3.7
Reply

Hello guys,

I am curious if anyone here knows how to group objects properly.

I want a group of objects to be visible for a specific player and I want to delete these so called group of objects when the player is done with it.

For example, a player types a command, the map appears, and he types a command to delete it and only that map is removed.

Thanks in advance.
Reply

Example:
pawn Код:
for(new i; i < sizeof(playerMap[playerid]); i++)
{
       playerMap[playerid][i] = CreateDynamicObject(playerObjects[playerid][i][oModel], playerObjects[playerid][i][oX], playerObjects[playerid][i][oY], playerObjects[playerid][i][oZ]);
}
Then to destroy, etc:
pawn Код:
for(new i; i < sizeof(playerMap[playerid]); i++)
{
       if(IsValidDynamicObject(playerMap[playerid][i]))
       {
              DestroyDynamicObject(playerMap[playerid][i]);
       }
}
This allows you to easily loop through the objects and perform a various array of operations.
Reply

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Example:
pawn Код:
for(new i; i < sizeof(playerMap[playerid]); i++)
{
       playerMap[playerid][i] = CreateDynamicObject(playerObjects[playerid][i][oModel], playerObjects[playerid][i][oX], playerObjects[playerid][i][oY], playerObjects[playerid][i][oZ]);
}
Then to destroy, etc:
pawn Код:
for(new i; i < sizeof(playerMap[playerid]); i++)
{
       if(IsValidDynamicObject(playerMap[playerid][i]))
       {
              DestroyDynamicObject(playerMap[playerid][i]);
       }
}
This allows you to easily loop through the objects and perform a various array of operations.
Well yeah, I want to do it without using a multi dimensional array.

Because the map has re-textures aswell.
Reply

Anyone have problems with 3D Texts?
Always and only players with ID 0 have bugged texts above head (nicknames). I know, that is streamer problem. Everything is okay in my gamemode, only ID 0 is bugged. Player with ID 0 have other playernames above his head.
Reply

Quote:
Originally Posted by Michalec
Посмотреть сообщение
Anyone have problems with 3D Texts?
Always and only players with ID 0 have bugged texts above head (nicknames). I know, that is streamer problem. Everything is okay in my gamemode, only ID 0 is bugged. Player with ID 0 have other playernames above his head.
Don't assume it's a streamer problem. What you are trying to do works perfectly fine in my gamemode. I have the latest version of SA-MP and the latest streamer (and it was the same in older verisons), it all works fine.
Reply

I don't think so, becouse everytime when I'm using Dynamic3DText's nicknames are bugged. When using normal 3DText in THE SAME METHOD - Everything works fine.

Can you show me how have you done it? Maybe there is something weird, as always in SA-MP.
I'm creating 3DText in callback OnPlayerConnect, then attach it to player in OnPlayerSpawn and destroy in OnPlayerDisconnect.
Reply

Quote:
Originally Posted by Michalec
Посмотреть сообщение
I don't think so, becouse everytime when I'm using Dynamic3DText's nicknames are bugged. When using normal 3DText in THE SAME METHOD - Everything works fine.

Can you show me how have you done it? Maybe there is something weird, as always in SA-MP.
I'm creating 3DText in callback OnPlayerConnect, then attach it to player in OnPlayerSpawn and destroy in OnPlayerDisconnect.
Bear in mind, this is a streamer. It will only be attached when a player is streamed in. So if all players aren't streamed in it will be bugged. Try using OnPlayerStreamInForPlayer.
Reply

Could you show me your code, that "works without problems"?

I've found what happens:
http://prntscr.com/7u4v83
http://prntscr.com/7u4vdj

Player with ID 10 left from the server then player with 0 gets "free" nickname.
Reply

nevermind
Reply

I updated this plugin to 2.7.7 cause i needed the dynamic map icon showing for specific playerid only. But i am getting the plugin and include version not matching error, why? If i use the older version, it works fine but not with v2.7.7
Reply

Since plugin updated version 2.7.3, it makes some lags when more than 200 players was connected.( latest version too )
It's not occured when using 2.7.2 version.
How can i fix it?
Reply

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
The server crashes when I kick a NPC afters he enters into an area.

Crash info:
Код:
SA-MP Server: 0.3.7-R2



Exception At Address: 0x6F5B0E77 Module: (streamer.DLL)



Registers:

EAX: 0x00000000	EBX: 0x00307D04	ECX: 0x00000003	EDX: 0x00000000

ESI: 0x00000001	EDI: 0x0019FD24	EBP: 0x0019FD1C	ESP: 0x0019FCF8

EFLAGS: 0x00210202



Stack:

+0000: 0x0019FDC0   0x002E4488   0x00000048   0x00307DB8

+0010: 0x00000003   0x9E376FC3   0x0019FD7C   0x6F5D5858

+0020: 0xFFFFFFFF   0x0019FD88   0x6F5B141B   0x00307D04

+0030: 0x0019FDC0   0x0019FD3C   0x00307D04   0x00000000

+0040: 0x00000000   0x6F5A6200   0x00000011   0x00000002

+0050: 0x3F800000   0x00000011   0x003088D0   0x003662F0

+0060: 0x00307D01   0xFFFFF60A   0xFFFFFE3E   0xC5051379

+0070: 0xC2917DF8   0x002E44DC   0xC517D379   0xC3BA5F7E

+0080: 0x002E4488   0x0019FDEC   0x6F5D5898   0x00000000

+0090: 0x0019FDF8   0x6F5C9FD8   0x00307D04   0x00000000

+00A0: 0x002E9688   0x00307CF8   0x0019FDB0   0x0119FDDC

+00B0: 0x002E9688   0x00000000   0x00000006   0x00000000

+00C0: 0x00000000   0x00000000   0x003660E0   0x003660EC

+00D0: 0x003660EC   0x0019FDFC   0xC5051379   0xC2917DF8

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

+00F0: 0x6F5DB124   0x0019FE9C   0x6F5D61A8   0x00000000

+0100: 0x0019FE1C   0x6F5C9B8A   0x00307D04   0x00000001

+0110: 0x02168C80   0x0216819C   0x0048B5FA   0x003B7038

+0120: 0x0049130E   0x777F77B0   0x00469A66   0x77806110

+0130: 0x778060C0   0x0048D4DB   0x00000000   0x000023F0



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



Loaded Modules:

samp-server.exe	A: 0x00400000 - 0x00519000	(C:\Program Files (x86)\Rockstar Games\SA-MP Server\samp-server.exe)

ntdll.dll	A: 0x77C80000 - 0x77DF9000	(C:\WINDOWS\SYSTEM32\ntdll.dll)

KERNEL32.DLL	A: 0x777E0000 - 0x778D0000	(C:\WINDOWS\SYSTEM32\KERNEL32.DLL)

KERNELBASE.dll	A: 0x77010000 - 0x77186000	(C:\WINDOWS\SYSTEM32\KERNELBASE.dll)

SHELL32.dll	A: 0x75360000 - 0x7671D000	(C:\WINDOWS\SYSTEM32\SHELL32.dll)

msvcrt.dll	A: 0x76B20000 - 0x76BDE000	(C:\WINDOWS\SYSTEM32\msvcrt.dll)

windows.storage.dll	A: 0x77300000 - 0x777DC000	(C:\WINDOWS\SYSTEM32\windows.storage.dll)

combase.dll	A: 0x74E10000 - 0x74FCA000	(C:\WINDOWS\SYSTEM32\combase.dll)

RPCRT4.dll	A: 0x77930000 - 0x779DC000	(C:\WINDOWS\SYSTEM32\RPCRT4.dll)

SspiCli.dll	A: 0x74D90000 - 0x74DAE000	(C:\WINDOWS\SYSTEM32\SspiCli.dll)

CRYPTBASE.dll	A: 0x74D80000 - 0x74D8A000	(C:\WINDOWS\SYSTEM32\CRYPTBASE.dll)

bcryptPrimitives.dll	A: 0x74D20000 - 0x74D79000	(C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll)

sechost.dll	A: 0x74FD0000 - 0x75013000	(C:\WINDOWS\SYSTEM32\sechost.dll)

advapi32.dll	A: 0x75280000 - 0x752FB000	(C:\WINDOWS\SYSTEM32\advapi32.dll)

shlwapi.dll	A: 0x76ED0000 - 0x76F14000	(C:\WINDOWS\SYSTEM32\shlwapi.dll)

GDI32.dll	A: 0x77AA0000 - 0x77BED000	(C:\WINDOWS\SYSTEM32\GDI32.dll)

USER32.dll	A: 0x771C0000 - 0x77300000	(C:\WINDOWS\SYSTEM32\USER32.dll)

kernel.appcore.dll	A: 0x76BE0000 - 0x76BEC000	(C:\WINDOWS\SYSTEM32\kernel.appcore.dll)

shcore.dll	A: 0x76F20000 - 0x76FAD000	(C:\WINDOWS\SYSTEM32\shcore.dll)

powrprof.dll	A: 0x75300000 - 0x75344000	(C:\WINDOWS\SYSTEM32\powrprof.dll)

profapi.dll	A: 0x77190000 - 0x7719F000	(C:\WINDOWS\SYSTEM32\profapi.dll)

WSOCK32.dll	A: 0x73B20000 - 0x73B28000	(C:\WINDOWS\SYSTEM32\WSOCK32.dll)

WS2_32.dll	A: 0x778D0000 - 0x7792C000	(C:\WINDOWS\SYSTEM32\WS2_32.dll)

NSI.dll	A: 0x750B0000 - 0x750B7000	(C:\WINDOWS\SYSTEM32\NSI.dll)

WINMM.dll	A: 0x73FF0000 - 0x74014000	(C:\WINDOWS\SYSTEM32\WINMM.dll)

WINMMBASE.dll	A: 0x73DD0000 - 0x73DF3000	(C:\WINDOWS\SYSTEM32\WINMMBASE.dll)

cfgmgr32.dll	A: 0x75070000 - 0x750A6000	(C:\WINDOWS\SYSTEM32\cfgmgr32.dll)

DEVOBJ.dll	A: 0x73B90000 - 0x73BB1000	(C:\WINDOWS\SYSTEM32\DEVOBJ.dll)

IMM32.DLL	A: 0x750C0000 - 0x750EB000	(C:\WINDOWS\SYSTEM32\IMM32.DLL)

MSCTF.dll	A: 0x76BF0000 - 0x76D10000	(C:\WINDOWS\SYSTEM32\MSCTF.dll)

sscanf.DLL	A: 0x10000000 - 0x1000D000	(C:\Program Files (x86)\Rockstar Games\SA-MP Server\plugins\sscanf.DLL)

MSVCR100.dll	A: 0x74020000 - 0x740DF000	(C:\WINDOWS\SYSTEM32\MSVCR100.dll)

streamer.DLL	A: 0x6F5A0000 - 0x6F5E6000	(C:\Program Files (x86)\Rockstar Games\SA-MP Server\plugins\streamer.DLL)

MSVCP120.dll	A: 0x6E540000 - 0x6E5B1000	(C:\WINDOWS\SYSTEM32\MSVCP120.dll)

MSVCR120.dll	A: 0x6DD00000 - 0x6DDEE000	(C:\WINDOWS\SYSTEM32\MSVCR120.dll)

whirlpool.DLL	A: 0x002B0000 - 0x002BC000	(C:\Program Files (x86)\Rockstar Games\SA-MP Server\plugins\whirlpool.DLL)

MSVCR80.dll	A: 0x74500000 - 0x7459B000	(C:\WINDOWS\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9185_none_d0905a48442809b8\MSVCR80.dll)

mswsock.dll	A: 0x73F80000 - 0x73FCE000	(C:\WINDOWS\system32\mswsock.dll)

napinsp.dll	A: 0x73220000 - 0x73232000	(C:\WINDOWS\system32\napinsp.dll)

pnrpnsp.dll	A: 0x73200000 - 0x73216000	(C:\WINDOWS\system32\pnrpnsp.dll)

NLAapi.dll	A: 0x731E0000 - 0x731F3000	(C:\WINDOWS\system32\NLAapi.dll)

DNSAPI.dll	A: 0x736C0000 - 0x73744000	(C:\WINDOWS\SYSTEM32\DNSAPI.dll)

winrnr.dll	A: 0x731D0000 - 0x731DB000	(C:\WINDOWS\System32\winrnr.dll)

mdnsNSP.dll	A: 0x73670000 - 0x73691000	(C:\Program Files (x86)\Bonjour\mdnsNSP.dll)

Iphlpapi.DLL	A: 0x741D0000 - 0x74200000	(C:\WINDOWS\SYSTEM32\Iphlpapi.DLL)

WINNSI.DLL	A: 0x74150000 - 0x74158000	(C:\WINDOWS\SYSTEM32\WINNSI.DLL)

bcrypt.dll	A: 0x73DA0000 - 0x73DBB000	(C:\WINDOWS\SYSTEM32\bcrypt.dll)

rasadhlp.dll	A: 0x73370000 - 0x73378000	(C:\Windows\System32\rasadhlp.dll)

uxtheme.dll	A: 0x73BC0000 - 0x73C35000	(C:\WINDOWS\system32\uxtheme.dll)

PROPSYS.dll	A: 0x72730000 - 0x72872000	(C:\WINDOWS\SYSTEM32\PROPSYS.dll)

OLEAUT32.dll	A: 0x751E0000 - 0x75272000	(C:\WINDOWS\SYSTEM32\OLEAUT32.dll)

cryptsp.dll	A: 0x73380000 - 0x73393000	(C:\WINDOWS\SYSTEM32\cryptsp.dll)

urlmon.dll	A: 0x73750000 - 0x738B0000	(C:\Windows\SYSTEM32\urlmon.dll)

iertutil.dll	A: 0x733A0000 - 0x73661000	(C:\Windows\SYSTEM32\iertutil.dll)

SHDOCVW.dll	A: 0x6AA70000 - 0x6AAAB000	(C:\WINDOWS\SYSTEM32\SHDOCVW.dll)

WINTRUST.dll	A: 0x75020000 - 0x75062000	(C:\WINDOWS\SYSTEM32\WINTRUST.dll)

MSASN1.dll	A: 0x76720000 - 0x7672E000	(C:\WINDOWS\SYSTEM32\MSASN1.dll)

CRYPT32.dll	A: 0x769A0000 - 0x76B15000	(C:\WINDOWS\SYSTEM32\CRYPT32.dll)

comctl32.dll	A: 0x705C0000 - 0x707C9000	(C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\comctl32.dll)

dwmapi.dll	A: 0x738B0000 - 0x738CD000	(C:\WINDOWS\system32\dwmapi.dll)

WindowsCodecs.dll	A: 0x6F630000 - 0x6F7A1000	(C:\WINDOWS\SYSTEM32\WindowsCodecs.dll)
This is what I've done:
PHP код:
new area;
public 
OnGameModeInit()
{
    
area CreateDynamicRectangle(-2117.7139, -75.3254, -2130.9038, -70.4151, -10, -1);
    return 
1;
}
public 
OnPlayerEnterDynamicArea(playeridareaid)
{
    if(
IsPlayerNPC(playerid))
    {
        if(
areaid == area)
        {
            
/* Some code. */
            
Kick(playerid);
            return 
1;
        }
        return 
1;
    }
    
/* Other areas. */
    
return 1;

If I kick a real player (not NPC) I get the next crash info:
Код:
SA-MP Server: 0.3.7



Exception At Address: 0x77CBC78E Module: (Unknown)



Registers:

EAX: 0x88000D00	EBX: 0x0056D918	ECX: 0x0056D750	EDX: 0x0056D918

ESI: 0x00550000	EDI: 0xB98D08EB	EBP: 0x024FFCBC	ESP: 0x024FFC90

EFLAGS: 0x00010286



Stack:

+0000: 0x00550000   0x0056D918   0x00000000   0x77D88A80

+0010: 0x00000000   0x005E72A8   0x02000002   0x00000001

+0020: 0x00000000   0x00550200   0xB98D08EB   0x024FFCEC

+0030: 0x77CFC63A   0x00550000   0x0056D920   0x0056D924

+0040: 0x0056D924   0x77CAFEEB   0x0056D920   0x024FFEA0

+0050: 0x3B00003B   0x00572188   0x3B00003B   0x024FFCFC

+0060: 0x77CBC72C   0x00000000   0x00576BE0   0x024FFD24

+0070: 0x77CDF206   0x00550000   0x00000000   0x0056D920

+0080: 0x00000000   0x7FEAF000   0x00000000   0xDC4B0000

+0090: 0x00000000   0x024FFDC8   0x77CC2422   0x0056D920

+00A0: 0x090A8A97   0x00553CE0   0x00000000   0x00576DA8

+00B0: 0x00576BE8   0x0000003B   0x005CB858   0x0056DF58

+00C0: 0x0000003B   0x0000003B   0x0000003B   0x015531F8

+00D0: 0x00550260   0x0000003B   0x00550260   0x01000009

+00E0: 0x00553CE0   0x00553CE0   0x024FFF70   0x77CF0D40

+00F0: 0x7C926167   0xFFFFFFFE   0x024FFDBC   0x77CFC650

+0100: 0x00000000   0x00576BE8   0x00553CE0   0x7FFDE000

+0110: 0x00576DA8   0x7FEAF000   0x00000000   0x090A8A87

+0120: 0x024FFD30   0x024FF7A4   0x024FFF70   0x77CF0D40

+0130: 0x7C92606F   0xFFFFFFFE   0x024FFDD8   0x77CE25A0



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



Loaded Modules:

-FailedCreate-
I'm using Windows 10 and SA-MP Server 0.3.7-R2.

Regards.

Issue opened on GitHub: click here.
Please install crashdetect for some more useful data: https://sampforum.blast.hk/showthread.php?tid=262796
Reply

It could be done with dynamic areas and the rak plugin.
Reply

W'z. Is E_STREAMER_EXTRA_ID for our own requirements or what is that?
Reply

Quote:
Originally Posted by FSAOskar
View Post
That's what I meant It would be more effective if there was a CreateVehicleForPlayer function then only having the normal CreateVehicle.
Just wanted to say that the same could be done with Actors
Then i'm wrong, sorry
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)