[Plugin] YSF – IS4's version
#41

Quote:
Originally Posted by shiftlol
Посмотреть сообщение
in plugin possible to add SetPlayerCommandClient(playerid, cmd[]); ?
add customer orders samp
I have absolutely no idea what you mean.

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
There is SetPlayerMarkerForPlayer function in samp, but there is not reset/clear function, so here is a suggestion, add ResetPlayersMarkersForPlayer(playerid) and maybe GetPlayerMarkerForPlayer(playerid) - if Set function is not used, return global player marker color.

Oh and add tar.gz release for linux users.
Sounds useful. What should ResetPlayersMarkersForPlayer do? If you mean just set it to the seen player's own color, you can already do that with SetPlayerMarkerForPlayer and SetPlayerColor.

And each release already has both .zip and .tar.gz downloads.
Reply
#42

[QUOTE=sprtik;3731689]I have absolutely no idea what you mean.

set player client command exemple:
SetPlayerCommandClient(playerid, "/fpslimit 90");
link to command Client SA:MP https://sampwiki.blast.hk/wiki/Client_Commands
sorry, i bad speake english!
Reply
#43

Quote:
Originally Posted by shiftlol
Посмотреть сообщение
set player client command exemple:
SetPlayerCommandClient(playerid, "/fpslimit 90");
link to command Client SA:MP https://sampwiki.blast.hk/wiki/Client_Commands
sorry, i bad speake english!
Impossible.
Reply
#44

@shiftlol, I can suggest to create the per player actor functions. I know what it is possible, but it's huge work.
PHP код:
CreateActorForPlayer(playeridmodelidFloat:XFloat:YFloat:ZFloat:Rotation
Reply
#45

Quote:
Originally Posted by ZiGGi
Посмотреть сообщение
@shiftlol, I can suggest to create the per player actor functions. I know what it is possible, but it's huge work.
PHP код:
CreateActorForPlayer(playeridmodelidFloat:XFloat:YFloat:ZFloat:Rotation
you have skype? give me ...
Reply
#46

Quote:
Originally Posted by sprtik
Посмотреть сообщение
I have absolutely no idea what you mean.



Sounds useful. What should ResetPlayersMarkersForPlayer do? If you mean just set it to the seen player's own color, you can already do that with SetPlayerMarkerForPlayer and SetPlayerColor.

And each release already has both .zip and .tar.gz downloads.
ResetPlayersMarkersForPlayer should return everyone's color to global colors (SetPlayerColor) for given player.

I cant really describe it much more than the function name does...

Lets say 3 players are online. 0,1,2. 0-White, 1-Blue, 2-Green. Now we use SetPlayerMarkerForPlayer, and set that 0 see 1 and 2 as RED. And if we want to return to Blue and Green for id 0, we would use ResetPlayersMarkersForPlayer since Blue and Green are global colors for 1 and 2.
Reply
#47

Many bugs on linux In your last updates.
Now Im using In R17.
Reply
#48

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
Lets say 3 players are online. 0,1,2. 0-White, 1-Blue, 2-Green. Now we use SetPlayerMarkerForPlayer, and set that 0 see 1 and 2 as RED. And if we want to return to Blue and Green for id 0, we would use ResetPlayersMarkersForPlayer since Blue and Green are global colors for 1 and 2.
I think that ResetPlayerMarkerForPlayer(playerid, resetplayerid) are more useful than ResetPlayersMarkersForPlayer(playerid).

I implemented this feature in the pull request: https://github.com/IllidanS4/YSF/pull/1
Reply
#49

Server crash
pawn Код:
[01:37:23] [debug] AMX backtrace:
[01:37:23] [debug] Run time error 7: "Stack underflow"
[01:37:23] [debug]  Stack pointer (STK) is 0x1679354, stack top (STP) is 0x1679350
i use latest version
Reply
#50

Quote:
Originally Posted by Adoniiz
Посмотреть сообщение
Server crash
pawn Код:
[01:37:23] [debug] AMX backtrace:
[01:37:23] [debug] Run time error 7: "Stack underflow"
[01:37:23] [debug]  Stack pointer (STK) is 0x1679354, stack top (STP) is 0x1679350
i use latest version
I have the same problem, my pops me when I turn on the server and update the server in SA: MP, if you let start the server without updating in SA: MP the crash does not appear, rare but happens to me as well.
Reply
#51

Quote:
Originally Posted by LatinZ
Посмотреть сообщение
I have the same problem, my pops me when I turn on the server and update the server in SA: MP, if you let start the server without updating in SA: MP the crash does not appear, rare but happens to me as well.
What version do you use that be stable? i went back to version R16
Reply
#52

Quote:
Originally Posted by ZiGGi
Посмотреть сообщение
I think that ResetPlayerMarkerForPlayer(playerid, resetplayerid) are more useful than ResetPlayersMarkersForPlayer(playerid).

I implemented this feature in the pull request: https://github.com/IllidanS4/YSF/pull/1
Indeed it is since we can loop in pawn
Just a question, did you have to find RPC by yourself?
Reply
#53

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
Just a question, did you have to find RPC by yourself?
Yep, it's pretty simple.
Reply
#54

I am always getting this errors when compling the source file with visual studio 2015 I tried Enterprise and it gave me another erros and tried professional version it gave me these errors :'c

Код:
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol _GetModuleInformation@16 referenced in function "unsigned long __cdecl FindPattern(char *,char *)" (?FindPattern@@YAKPAD0@Z)	YSF	E:\YSF\YSF-R17\Utils.obj	1	
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1120	1 unresolved externals	YSF	E:\YSF\YSF-R17\bin\win32\Debug\YSF.dll	1
do you have an idea why they showing for me :'c?

Note: I am noob on c++ and those stuff :3
Reply
#55

Add psapi.lib to your linker:
Код:
#pragma comment(lib, "psapi.lib") // in main.cpp
Reply
#56

Issue: When I click very fast on the server list, the server shuts down for no reason. (Crash)
S.O: Windows
YSF 2.1.1

Quote:

[02:08:34] [debug] Server crashed due to an unknown error
[02:08:35] [debug] Native backtrace:
[02:08:35] [debug] #0 02836b33 in ?? () from plugins\YSF.dll
[02:08:35] [debug] #1 0283c72d in ?? () from plugins\YSF.dll
[02:08:35] [debug] #2 777a43e5 in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[02:08:35] [debug] #3 777a4460 in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[02:08:35] [debug] #4 0378f490 in ?? ()
[02:08:35] [debug] #5 01000002 in ?? ()
[02:08:35] [debug] #6 11449d42 in ?? () from samp-server.exe
[02:08:35] [debug] #7 03780000 in ?? ()

Any solution?
Reply
#57

Quote:
Originally Posted by hydewhyd
Посмотреть сообщение
Issue: When I click very fast on the server list, the server shuts down for no reason. (Crash)
S.O: Windows
YSF 2.1.1


Any solution?
It's caused by a memory leak in calling OnServerQueryInfo. Please don't use that callback until the next release.
Reply
#58

Quote:
Originally Posted by Spmn
Посмотреть сообщение
Add psapi.lib to your linker:
Код:
#pragma comment(lib, "psapi.lib") // in main.cpp
Thank you so much ._., mate you're the best O.O
Reply
#59

Quote:
Originally Posted by sprtik
Посмотреть сообщение
It's caused by a memory leak in calling OnServerQueryInfo. Please don't use that callback until the next release.
Ok, thanks for the info, hopefully in the next version can be solved.
Reply
#60

Quote:
Originally Posted by hydewhyd
Посмотреть сообщение
Ok, thanks for the info, hopefully in the next version can be solved.
New release, please try if it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)