Sampgdk error too many callback arguments at most 32 allowed

Hey guys, It's been a while since I've touched my script, quite a while actually... But not long ago I got access to a Windows VPS and upon trying to configure the server to all the plugins and files,

Posts: 324
Threads: 78
Joined: Oct 2010

Reputation:

0

07.06.2015, 18:07

(

Last edited by LiamM; 08/06/2015 at 05:03 PM.

)

Hey guys,

It’s been a while since I’ve touched my script, quite a while actually… But not long ago I got access to a Windows VPS and upon trying to configure the server to all the plugins and files, and through hours of trial and error getting it all to actually load the plugins.
I finally got it working…

However, when I go to log in, the login box fails to appear which it ALWAYS did beforehand, remember I’ve not touched this at all, then when I check the console, I get this error now which has never appeared before?

Code:

[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)

This is a continuous spam of this error.

Please bare in mind, once again, this script HAS NOT been touched since it was last working. I believe it is something relating to the streamer plugin, however I don’t know what.

Thanks in advance!

Posts: 687
Threads: 35
Joined: Oct 2014

Reputation:

0

Posts: 324
Threads: 78
Joined: Oct 2010

Reputation:

0

Hi, Jayden, trust me, I have done my fair share of searching and came up nothing. All includes and plugins have been updated and even downgraded to see if it resolved the issue, none of which did.

Posts: 687
Threads: 35
Joined: Oct 2014

Reputation:

0

How about crashdetect? Does that show anythin else in the logs?

Posts: 324
Threads: 78
Joined: Oct 2010

Reputation:

0

08.06.2015, 12:24

(

Last edited by LiamM; 08/06/2015 at 04:35 PM.

)

Quote:

Originally Posted by JaydenJason
View Post

How about crashdetect? Does that show anythin else in the logs?

I’ve not tried crash detect, I shall download it now and update you on this post

Posts: 687
Threads: 35
Joined: Oct 2014

Reputation:

0

While you’re at it, make sure you’re on debug mode.

Create new file named

Make sure this file is in the «/pawno» directory, where pawno etc is located, and make sure the file has nothing in it but

Posts: 324
Threads: 78
Joined: Oct 2010

Reputation:

0

Hi Jayden, I’ve just edited my previous post, I managed to solve it, detailed above in case anyone else comes across this same problem

Thank you for your continued support however

Posts: 687
Threads: 35
Joined: Oct 2014

Reputation:

0

Great to see that you fixed it, and you should keep that crashdetect +debug mode anyways if any other errors occur, you have to place the crashdetect.dll into your plugins folder and add it to your plugins line.

Posts: 324
Threads: 78
Joined: Oct 2010

Reputation:

0

08.06.2015, 16:32

(

Last edited by LiamM; 08/06/2015 at 05:11 PM.

)

Hi Jayden,

Turns out it was a temporary fix, it ran for approx. an hour, before having the same issue arise, so I decided to run the crashdetect plugin, this is what I got absolutely spammed at me for those errors:

Code:

[11:29:24] [debug] Run time error 8: "Heap underflow"
[11:29:24] [debug]  Heap pointer (HEA) is 0x1, heap bottom (HLW) is 0x637B68
[11:29:24] [debug] AMX backtrace:
[11:29:24] [sampgdk:error] Too many callback arguments (at most 32 allowed)

Edit: This is a message displayed when compiled, so this may be a problem?

Code:

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          10592 bytes
Code size:           585880 bytes
Data size:          6519656 bytes
Stack/heap size:      16384 bytes; estimated max. usage=7229 cells (28916 bytes)
Total requirements: 7132512 bytes

Posts: 324
Threads: 78
Joined: Oct 2010

Reputation:

0

Bumping, it has been WAY over 24 hours now and still not solution.

Статус
Закрыто для дальнейших ответов.

  • #1

Не могу разобраться с этой ошибкой + мод uncnown.

Код:

[14:47:57]   Loaded.
[14:47:57]  Loading plugin: pawncmd.so
[14:47:57] Pawn.CMD plugin v3.1.4 by urShadow loaded
[14:47:57]   Loaded.
[14:47:57]  Loading plugin: streamer.so
[14:47:57] 

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

[14:47:57]   Loaded.
[14:47:57]  Loading plugin: mysql_static.so
[14:47:57]  >> plugin.mysql: R39-2 successfully loaded.
[14:47:57]   Loaded.
[14:47:57]  Loading plugin: md5.so
[14:47:57]   MD5 v1.2 by BJIADOKC loaded
[14:47:57]   Loaded.
[14:47:57]  Loaded 5 plugins.

[14:47:57] 
[14:47:57] Filterscripts
[14:47:57] ---------------
[14:47:57]   Loaded 0 filterscripts.

[14:47:58] Script[gamemodes/mrp.amx]: Run time error 19: "File or function is not found"
[14:47:58] Number of vehicle models: 0
[14:51:42] Incoming connection: 5.43.142.122:64795
[14:51:42] [join] Sam_Winchester has joined the server (0:5.43.142.122)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:53] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[14:51:54] [part] Sam_Winchester has left the server (0:1)

Manowar


  • #2

Подключи плагин CrashDetect и скомпилируй мод в режиме отладки. Потом запусти мод и скинь лог сервера сюда.

  • #3

При компилировании должен появится в папке gamemode файл .amx, попробуй скомпилировать мод несколько раз, возможно в моде ошибки 

P.S(pawno запускай которое у тебя в моде т.е в папке pawno)

Статус
Закрыто для дальнейших ответов.

Marjan112

When i compile my code i get this errors:
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(1318): error C2491: ‘sampgdk_GetNatives’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(1322): error C2491: ‘sampgdk_FindNative’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(1329): error C2491: ‘sampgdk_CallNative’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(1333): error C2491: ‘sampgdk_InvokeNative’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(1345): error C2491: ‘sampgdk_InvokeNativeV’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(1350): error C2491: ‘sampgdk_InvokeNativeArray’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2488): error C2491: ‘sampgdk_GetVersion’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2492): error C2491: ‘sampgdk_GetVersionString’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2582): error C2491: ‘sampgdk_Supports’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2586): error C2491: ‘sampgdk_Load’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2590): error C2491: ‘sampgdk_Unload’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2594): error C2491: ‘sampgdk_ProcessTick’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2598): error C2491: ‘sampgdk_logprintf’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2605): error C2491: ‘sampgdk_vlogprintf’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2928): error C2491: ‘sampgdk_CreateActor’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2944): error C2491: ‘sampgdk_DestroyActor’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2956): error C2491: ‘sampgdk_IsActorStreamedIn’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2969): error C2491: ‘sampgdk_SetActorVirtualWorld’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2982): error C2491: ‘sampgdk_GetActorVirtualWorld’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(2994): error C2491: ‘sampgdk_ApplyActorAnimation’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3020): error C2491: ‘sampgdk_ClearActorAnimations’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3032): error C2491: ‘sampgdk_SetActorPos’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3047): error C2491: ‘sampgdk_GetActorPos’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3074): error C2491: ‘sampgdk_SetActorFacingAngle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3087): error C2491: ‘sampgdk_GetActorFacingAngle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3104): error C2491: ‘sampgdk_SetActorHealth’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3117): error C2491: ‘sampgdk_GetActorHealth’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3134): error C2491: ‘sampgdk_SetActorInvulnerable’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3147): error C2491: ‘sampgdk_IsActorInvulnerable’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3159): error C2491: ‘sampgdk_IsValidActor’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3188): error C2491: ‘sampgdk_IsValidVehicle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3200): error C2491: ‘sampgdk_GetVehicleDistanceFromPoint’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3215): error C2491: ‘sampgdk_CreateVehicle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3235): error C2491: ‘sampgdk_DestroyVehicle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3247): error C2491: ‘sampgdk_IsVehicleStreamedIn’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3260): error C2491: ‘sampgdk_GetVehiclePos’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3287): error C2491: ‘sampgdk_SetVehiclePos’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3302): error C2491: ‘sampgdk_GetVehicleZAngle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3319): error C2491: ‘sampgdk_GetVehicleRotationQuat’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3351): error C2491: ‘sampgdk_SetVehicleZAngle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3364): error C2491: ‘sampgdk_SetVehicleParamsForPlayer’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3379): error C2491: ‘sampgdk_ManualVehicleEngineAndLights’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3388): error C2491: ‘sampgdk_SetVehicleParamsEx’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3407): error C2491: ‘sampgdk_GetVehicleParamsEx’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3454): error C2491: ‘sampgdk_GetVehicleParamsSirenState’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3466): error C2491: ‘sampgdk_SetVehicleParamsCarDoors’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3482): error C2491: ‘sampgdk_GetVehicleParamsCarDoors’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3514): error C2491: ‘sampgdk_SetVehicleParamsCarWindows’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3530): error C2491: ‘sampgdk_GetVehicleParamsCarWindows’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3562): error C2491: ‘sampgdk_SetVehicleToRespawn’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3574): error C2491: ‘sampgdk_LinkVehicleToInterior’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3587): error C2491: ‘sampgdk_AddVehicleComponent’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3600): error C2491: ‘sampgdk_RemoveVehicleComponent’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3613): error C2491: ‘sampgdk_ChangeVehicleColor’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3627): error C2491: ‘sampgdk_ChangeVehiclePaintjob’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3640): error C2491: ‘sampgdk_SetVehicleHealth’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3653): error C2491: ‘sampgdk_GetVehicleHealth’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3670): error C2491: ‘sampgdk_AttachTrailerToVehicle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3683): error C2491: ‘sampgdk_DetachTrailerFromVehicle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3695): error C2491: ‘sampgdk_IsTrailerAttachedToVehicle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3707): error C2491: ‘sampgdk_GetVehicleTrailer’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3719): error C2491: ‘sampgdk_SetVehicleNumberPlate’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3735): error C2491: ‘sampgdk_GetVehicleModel’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3747): error C2491: ‘sampgdk_GetVehicleComponentInSlot’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3760): error C2491: ‘sampgdk_GetVehicleComponentType’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3772): error C2491: ‘sampgdk_RepairVehicle’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3784): error C2491: ‘sampgdk_GetVehicleVelocity’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3811): error C2491: ‘sampgdk_SetVehicleVelocity’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3826): error C2491: ‘sampgdk_SetVehicleAngularVelocity’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3841): error C2491: ‘sampgdk_GetVehicleDamageStatus’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3873): error C2491: ‘sampgdk_UpdateVehicleDamageStatus’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3889): error C2491: ‘sampgdk_SetVehicleVirtualWorld’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3902): error C2491: ‘sampgdk_GetVehicleVirtualWorld’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3914): error C2491: ‘sampgdk_GetVehicleModelInfo’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3959): error C2491: ‘sampgdk_SendClientMessage’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3976): error C2491: ‘sampgdk_SendClientMessageToAll’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(3992): error C2491: ‘sampgdk_SendPlayerMessageToPlayer’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4009): error C2491: ‘sampgdk_SendPlayerMessageToAll’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4025): error C2491: ‘sampgdk_SendDeathMessage’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4039): error C2491: ‘sampgdk_SendDeathMessageToPlayer’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4054): error C2491: ‘sampgdk_GameTextForAll’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4071): error C2491: ‘sampgdk_GameTextForPlayer’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4089): error C2491: ‘sampgdk_GetTickCount’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4098): error C2491: ‘sampgdk_GetMaxPlayers’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4107): error C2491: ‘sampgdk_VectorSize’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4121): error C2491: ‘sampgdk_GetPlayerPoolSize’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4130): error C2491: ‘sampgdk_GetVehiclePoolSize’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4139): error C2491: ‘sampgdk_GetActorPoolSize’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4148): error C2491: ‘sampgdk_SHA256_PassHash’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4173): error C2491: ‘sampgdk_SetSVarInt’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4189): error C2491: ‘sampgdk_GetSVarInt’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4204): error C2491: ‘sampgdk_SetSVarString’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4223): error C2491: ‘sampgdk_GetSVarString’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4244): error C2491: ‘sampgdk_SetSVarFloat’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4260): error C2491: ‘sampgdk_GetSVarFloat’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4275): error C2491: ‘sampgdk_DeleteSVar’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4290): error C2491: ‘sampgdk_GetSVarsUpperIndex’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4299): error C2491: ‘sampgdk_GetSVarNameAtIndex’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4317): error C2491: ‘sampgdk_GetSVarType’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4332): error C2491: ‘sampgdk_SetGameModeText’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4347): error C2491: ‘sampgdk_SetTeamCount’: definition of dllimport function not allowed
C:UsersMakiDesktopsampgdksampgdk/sampgdk.c(4347): fatal error C1003: error count exceeds 100; stopping compilation

So, if someone knows how to fix this please reply

DJNK01

When I run a certain command (/work) in my Server, runs but every command I type in SERVER UNKNOWN COMMAND comes back

[22:27:27] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[22:27:27] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[22:27:27] [sampgdk:error] Too many callback arguments (at most 32 allowed)

anybody here who could help me to fix this issue ?

RodrigoMSR

I ran some tests and realized that sampgdk hooks make public function calls 4 times slower, wouldn’t it be possible to further optimize these hooks? I understand if that’s not possible, I’m just raising the question.

The streamer plugin uses sampgdk, that’s why I noticed this difference.

ziggi

Something wrong with trailer sync and streamer 2.9.4.

When players has attached trailer and when they not moving, other players see they as AFK. They don’t see players who streamed in until any movement.

It’s difficult to explain, look at the video (Russian comments): https://youtu.be/D0btBJ2693A
Bug disappears with streamer 2.9.4 builded with sampgdk 4.5.3.

ikkentim

bool sampgdk_callback_invoke(AMX *amx,
const char *name,
int paramcount,
cell *retval)
{
struct _sampgdk_callback_info *callback;
struct _sampgdk_callback_info *callback_filter;
struct _sampgdk_callback_info *callback_filter2;
cell params[_SAMPGDK_CALLBACK_MAX_ARGS + 1];
void **plugins;
int num_plugins;
int i;
assert(amx != NULL);
callback = _sampgdk_callback_find(name);
callback_filter = _sampgdk_callback_find(«:OnPublicCall«);
callback_filter2 = _sampgdk_callback_find(«:OnPublicCall2«);
assert(callback_filter != NULL);
assert(callback_filter2 != NULL);
if (paramcount > _SAMPGDK_CALLBACK_MAX_ARGS) {
sampgdk_log_error(«Too many callback arguments (at most %d allowed)«,
_SAMPGDK_CALLBACK_MAX_ARGS);
return true;
}
params[0] = paramcount * sizeof(cell);
memcpy(&params[1], sampgdk_param_get_start(amx), params[0]);
plugins = sampgdk_plugin_get_plugins(&num_plugins);
for (i = 0; i < num_plugins; i++) {
void *plugin = plugins[i];
void *func;
bool do_call = true;
bool stop = false;
func = sampgdk_plugin_get_symbol(plugin, callback_filter->func_name);
if (func != NULL) {
do_call = ((_sampgdk_callback_filter)func)(amx, name, params, retval);
}
/* callback_filter2 is similar to callback_filter except it can stop
* propagation of public call to other plugins. It was added for backwards
* compatibility.
*
* callback_filter2’s return value overrides that of callback_filter.
*/
func = sampgdk_plugin_get_symbol(plugin, callback_filter2->func_name);
if (func != NULL) {
do_call = !((_sampgdk_callback_filter2)func)(amx,
name,
params,
retval,
&stop);
}
if (stop) {
return false;
}
if (!do_call || callback == NULL || callback->handler == NULL) {
continue;
}
func = sampgdk_plugin_get_symbol(plugin, callback->func_name);
if (func != NULL
&& !((sampgdk_callback)callback->handler)(amx, func, retval)) {
return false;
}
}
return true;
}

When a new callback is registered to the _sampgdk_callbacks array, e.g. using the CallRemoteFunction native during OnPublicCall, the server can crash. This happens because the _sampgdk_callbacks is resized, and the callback, callback_filter and callback_filter2 locals in sampgdk_callback_invoke will point to a location in the freed memory.

D13G00

someone explain to me how to compile in sublime text 3?

alimsahy

Hi,

When i try to call plugin function in ‘OnPlayerConnect’ or any callback, i always getting this error. Why? Where am I doing wrong?

#include <sampgdk/core.h>
#include <sampgdk/sdk.h>
#include "Players.h"

extern void* pAMXFunctions;


PLUGIN_EXPORT bool PLUGIN_CALL OnGameModeInit() 
{
	return true;
}

AMX_NATIVE_INFO PluginNatives[] =
{
	{"SetPlayerFaction", Players::SetPlayerFaction},
	{"GetPlayerFaction", Players::GetPlayerFaction},
	{0, 0}
};

PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports()
{
	return sampgdk::Supports() | SUPPORTS_PROCESS_TICK | SUPPORTS_AMX_NATIVES;
}

PLUGIN_EXPORT bool PLUGIN_CALL Load(void** ppData)
{
	pAMXFunctions = ppData[PLUGIN_DATA_AMX_EXPORTS];
	sampgdk_logprintf("Shit is working....");
    return true;
}

PLUGIN_EXPORT void PLUGIN_CALL Unload()
{
	sampgdk::Unload();
}

PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX* amx)
{
    return amx_Register(amx, PluginNatives, -1);
}


PLUGIN_EXPORT int PLUGIN_CALL AmxUnload(AMX* amx)
{
    return AMX_ERR_NONE;
}

Pawn file:

public OnGameModeInit()
{
	printf ("Loaded");
	return 1;
}

public OnPlayerConnect(playerid)
{
	SetPlayerFaction(playerid, 10); // Native function not found: SetPVarInt
	return 1;
}

alimsahy

#include <amx/amx.h>
#include <amx/getch.h>
#include <plugincommon.h>
#include <sampgdk/a_players.h>
#include <sampgdk/a_samp.h>

#include <random>

#define MYSQL_SERVER_NAME                   (5001)
#define MYSQL_SERVER_PASSWORD               (5002)
#define MYSQL_SERVER_USER                   (5003)
#define MYSQL_SERVER_DATABASE               (5004)

typedef void (*logprintf_t)(char* format, ...);
logprintf_t logprintf;
extern void* pAMXFunctions;

int AMX_NATIVE_CALL GetRandom(AMX* amx, cell* params)
{
    int minimum = params[1];
    int maximum = params[2];
    int range = maximum - minimum + 1;
    int generated = rand() % range + minimum;
    return generated;
}

cell AMX_NATIVE_CALL GetMySQL(AMX* amx, cell* params)
{
    int mysqlData = params[1];
    cell* address = NULL;

    amx_GetAddr(amx, params[2], &address);
    cell addressSize = params[3];
    
    if (mysqlData == MYSQL_SERVER_NAME) amx_SetString(address, "localhost", 0, 0, addressSize);
    if (mysqlData == MYSQL_SERVER_PASSWORD) amx_SetString(address, "lkjg282g", 0, 0, addressSize);
    if (mysqlData == MYSQL_SERVER_USER) amx_SetString(address, "root", 0, 0, addressSize);
    if (mysqlData == 5004) amx_SetString(address, "amentesrp", 0, 0, addressSize);
    return 1;
}

int AMX_NATIVE_CALL SetPlayerFactionType(AMX* amx, cell* params)
{
    int playerid = params[1];
    int faction = params[2];
    SetPVarInt(playerid, "pFaction", faction);
    return 1;
}

When i try to compiler this codes, SetPlayerFactionType always gives me that error and i dont know why. If i delete SetPlayerFactionType function, VS compiles project without an error. where am i making a mistake? I also added sampgdk4d.lib as Additional Library

Thanks

ikkentim

https://github.com/Zeex/sampgdk/blob/master/lib/sampgdk/a_samp.idl#L552

I was looking for a simple list of sa:mp callbacks and thought I would borrow sampgdk’s one. I noticed on line 552 it says badref instead of badret. I can’t find any handling for badref, is this a typo?

[callback, badref(false)] bool OnVehicleRespray(int playerid, int vehicleid, int color1, int color2);

f0Re3t

Как подменить параметры в каллбеках для ГМ и ФС с помощью SAMPGDK?

Double-O-Seven

So, I need to use OnPublicCall in my plugin, where I use SAMPGDK as a dynamic library.

The signature is this one here:
PLUGIN_EXPORT bool PLUGIN_CALL OnPublicCall(AMX *amx, const char *name, cell *params, cell *retval)

Now, let’s say I want hooked «OnPlayerText». Now, to my understand, params[0] contains the value 8, since there are two parameters — playerid and text.
How exactly do I get the real address of the text parameter? params[2] certainly does not contain the real address, since it’s value is 0 and according to Y_Less, it’s probably an offset.

Now, I’ve tried using amx_GetAddr, however, the server stops working on it’s first invocation with

cell *heapPointer = nullptr;
amx_GetAddr(amx, params[2], &heapPointer);

How exactly am I supposed to do this? I need the pointer to the beginning of the string.

Hello

I have a problem with amx_GetAddr
I use:

  • https://github.com/Zeex/sampgdk 4.6.2
  • https://github.com/Zeex/samp-plugin-sdk
  • docker image (debian:jessie (i386) and try on i386/ubuntu:cosmic)

each time before starting the server I run the following commands:

  • download and copy samp03svr to my project http://files.sa-mp.com/samp037svr_R2-1.tar.gz
  • set chmod 777 to samp03svr
  • download and compile my pwn file with https://github.com/pawn-lang/compiler/releases/download/v3.10.9/pawnc-3.10.9-linux.tar.gz
  • build my plugin

(empty.pwn)

and then run server:
./samp03svr

The error occurs when I call amx_GetAddr in the OnPublicCall.

PLUGIN_EXPORT bool PLUGIN_CALL OnPublicCall(AMX *amx, const char *name, cell *params, cell *retval)
{
    int argc = params[0] / sizeof(cell);
    int function_argc = 1;

    zval function_name, function_args[argc + 1], function_return;
    ZVAL_STRING(&function_name, "sampphp_callback");
    ZVAL_STRING(&function_args[0], name);

    if (argc > 1)
    {
        function_argc = 2;
        array_init(&function_args[1]);

        if (callback_format.find(name) != callback_format.end())
        {
            const char *format = callback_format.find(name)->second;
            for (int i = 0; i < strlen(format); i++)
            {
                switch (format[i])
                {

                case 's':
                    cell *addr = NULL;
		    int len = 0;
		    amx_GetAddr(amx, params[i + 1], &addr);
		    amx_StrLen(addr, &len);

		    if (len++) {
		        char* text = new char[len];
		        amx_GetString(text, addr, 0, len);
		        std::cout << "TEST: " << text << std::endl;
		    }

                    break;
                }
            }
        }
....

variable callback_format contains

callback_format["OnIncomingConnection"] = "isi";

Every time a callback is called with a string, the server crashes.

I saw this problem: #192 but it did not help me

How to fix a segmentation error?

grasmanek94

I modified one of my plugins to not use any callbacks, just only natives and using the functions provided by sampgdk, but it still crashed when any player connects. SA-MP version is 0.3e if it matters. Didn’t test on 0.3d.

Y-Less

CMakeLists.txt states a minimum version of 2.8.12:

cmake_minimum_required(VERSION 2.8.12)

But the script calls cmake -E env:

COMMAND cmake -E env PYTHONPATH=«${CMAKE_SOURCE_DIR}/scripts»

Which wasn’t introduced until 3.1.

Hello
I have a question on the type of data

In the «OnPublicCall» callback, there is an argument «params», which contains an array of parameters, but there is no information about the data type of the parameter

How to determine the data type of a variable?

Example

Code:

PLUGIN_EXPORT bool PLUGIN_CALL OnPublicCall(AMX *amx, const char *name, cell *params, cell *retval) {
    int argc = params[0] / sizeof(cell);
    std::cout << name << '(';
    for (int i = 0; i < argc; i++)
    {
        std::cout << "PARAM #" << i << ":" << params[i+1] << ", ";
    }
    std::cout << ')' << std::endl;
    return true;
}

Ouput:

OnGameModeInit()
OnIncomingConnection(PARAM #0:0, PARAM #1:0, PARAM #2:50665, )
OnPlayerConnect(PARAM #0:0, )
OnPlayerRequestClass(PARAM #0:0, PARAM #1:0, )
OnPlayerRequestClass(PARAM #0:0, PARAM #1:0, )
OnPlayerRequestSpawn(PARAM #0:0, )
OnPlayerStateChange(PARAM #0:0, PARAM #1:8, PARAM #2:0, )

In OnIncomingConnection(PARAM #0:0, PARAM #1:0, PARAM #2:50665, ) second params (PARAM#1) must be string, but I don’t know how to determine this

Hello
This is not a critical issue, but it made me spend a few hours.

Code:

PLUGIN_EXPORT bool PLUGIN_CALL OnGameModeInit() {
  std::cout << "GAME MODE INIT";
  return true;
}

Trouble:
The message «GAME MODE INIT» will appear only when the server is turned off
But, if I add «endl» or «n», then the message is output correctly (when this callback is called)

I use:

  1. docker image i386:ubuntu:18.04 (for compile)
  2. gdk 4.6.2 amalgamation

What could be the problem?

123marvin123

Prepare for the coming features of SA-MP 0.3.8:

AddCharModel(base skin (used for voice, animations), new skin ID, dff file in the models folder, txd file in the models folder);
AddSimpleModel(virtual world (-1 is all virtual worlds), base model (used for IDE flags), new model ID (-1000 to -30000), dff file in models folder, txd file in models folder);

http://forum.sa-mp.com/showthread.php?t=644105

dnl-k

Hello,

I’ve opened this issue in Incognito’s streamer repository and was told that it’s caused by the sampgdk.

My server relies on filterscripts being constantly loaded and unloaded, I’ve noticed it gets progressively slower over time and done some testing.

Loading filterscripts with the streamer:
https://pastebin.com/sPgybsE2

Loading filterscripts without the streamer:
https://pastebin.com/kUsdiTEL

Here’s what Incognito wrote:

I was curious about this and tested some of the earlier versions. Interestingly, 2.7.0 was unaffected. The problem seemed to crop up in 2.7.1. The only major change in that version was an sampgdk update, so I built the sampgdk helloworld plugin and tested it just now. The filterscripts began to load progressively slower again once that plugin was loaded.

Edit: I should say that I haven’t reviewed sampgdk’s code in a long time, so I’m not exactly sure why this is happening. It looks like a memory leak of some kind to me, though. You might have more success asking on the sampgdk repo.

XEGARE

Hello.
How to use format?

#Bush

#Bush

Заблокирован

Регистрация
25.02.2017
Сообщения
245
Реакции
114
Баллы
0
Веб-сайт
icoder.uz















  • Заблокирован
  • #21

Он не говорил вообще ничего про написание мода! Он сказал *Хватит все копировать,делайте все сами* думаю ты поймешь!

Регистрация
20.10.2015
Сообщения
325
Реакции
75
Баллы
35
Возраст
23















  • #22

Фракция — это дело не такое уж важное, можно сделать в любое время. Посоветую сделать несколько интересных работ для новичков, если ты конечно собираешься открывать сервер.

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #23

Сервер открывать пока что не хочу просто хочется помочь игрокам и тем кто хочется открыть сервер, в дальнейшем показать себя,показать свои работы, как и я обещал Сегодня выложу версию мода 1.1 и конечно же начал разработку новой фракции , фракция войдёт в очередь Государственных Организаций , и фракция будет похожа на подобие Правительства но у этой фракции немножко выше полномочий. Ну не буду сразу говорить сами увидите и решите мою работу , Спасибо всем за ранее.
Прошу продолжайте делать предложения =)
Хотел бы создать работы начинающим игрокам: Строитель,Ремонтник Дорог,Перевозчик Медикаментов,Работник АПТЕКИ, Детектив, Наркодиллер, Перевозчик Пиццы, Грузчики(Новое).
Так же добавить систему Учебы добавить место учебы ШКОЛУ.
И в дальнейшем ещё что нибудь если кто хочет увидеть всё это прошу , пишем и обсуждаем. Ну и можете поддержать лайками :girl_angel::icon_music::spasibo:

Регистрация
07.04.2016
Сообщения
120
Реакции
35
Баллы
35















  • #24

Очень хорошие идеи + от меня

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #25

anonymous2255

Регистрация
18.09.2016
Сообщения
199
Реакции
151
Баллы
35
Адрес

Ташкент

Веб-сайт
icoder.uz















  • #26

ссылка кривая в уздиск го

———- Сообщение добавлено в 00:27 ———- Предыдущее сообщение было в 00:26 ———-

в уздиск залей пожалуйста

———- Сообщение добавлено в 00:29 ———- Предыдущее сообщение было в 00:27 ———-

в уздиск залей или ннмуз или в дамп ток ссылка у тя кривая

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #27

anonymous2255

Регистрация
18.09.2016
Сообщения
199
Реакции
151
Баллы
35
Адрес

Ташкент

Веб-сайт
icoder.uz















  • #28

Блин, а зачем вместо ЦРУ ты поставил Юстицию? Сделал бы вместо закрытых фраках… Ты не создал эту фракцию ты просто названия рангов скинов и т.д немножко добавил. Создание фракции это когда с 0 делают фраку, а ты взял цру переименовал на юстицию, ранги скопировал, и всё. Даже колор как в цру. Надо было с 0 делать.

scroodgee

Регистрация
27.09.2016
Сообщения
310
Реакции
189
Баллы
35















  • Модер.
  • #29

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #30

ЦРУ фракцию использовал потому что оно не используется ну если вы так хотите будет вам новая фракция. Не проблема.

anonymous2255

Регистрация
18.09.2016
Сообщения
199
Реакции
151
Баллы
35
Адрес

Ташкент

Веб-сайт
icoder.uz















  • #31

Верни ЦРУ) Сделай новую фраку)

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #32

Уже сделал обнову увидите в версии 1.2

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #33

Теперь доступен много пользовательский сервер для более удобного общения , можете свободно заходить и общаться
TeamSpeak3: 178.218.207.78:9988

KingsMan

Регистрация
18.03.2015
Сообщения
182
Реакции
22
Баллы
25
Адрес

Бухара















  • #34

Не качал мод. Но думаю со временем мод будет еще уникальнее. Удачи.

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #35

Регистрация
16.03.2016
Сообщения
58
Реакции
0
Баллы
13















  • #36

в моде есть маг
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #37

Все хорошо работает это у вас.

———- Сообщение добавлено в 11:39 ———- Предыдущее сообщение было в 10:28 ———-

Скоро новую версию выложу! :good_post::comp:

Регистрация
16.03.2016
Сообщения
58
Реакции
0
Баллы
13















  • #38

Работает на Windows e нормально, но на хостинге залю(хостинге ОС linux) и запускаю работает нормально но через 3-4 часа сервер вылетает, зайдеш окно авторизации не выйдет, на логе каждый секунд пишет:
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)
[sampgdk:error] Too many callback arguments (at most 32 allowed)

Пиксель

Регистрация
30.11.2016
Сообщения
493
Реакции
284
Баллы
35
Возраст
24















  • Автор темы
  • #39

JluTepaTop

Регистрация
17.02.2017
Сообщения
49
Реакции
3
Баллы
3
Адрес

Гулистан

Понравилась статья? Поделить с друзьями:
  • Saeco lirika коды ошибок
  • Sampfuncs settings ini 1 character not found in line как исправить
  • Saeco lirika error 1
  • Samp unable to execute ошибка
  • Saeco e07 ошибка aulika