Script problem
#1

Hello guys!!! I need a help on my script there is error in log file file or funtion not found but when i compile my script there is no error while compiling please pm me i will send u my script and fix it and give me back thank you in advance
Reply
#2

This is not how it works. You said you got an error for function not function, this indicates that function(s) that used in script from one or more plugins weren't found. Few reason:

• You did not load the plugin(s).
• Plugin(s) failed to load.
• Wrong version of plugin(s).

It is very simple to know what is missing, either install crashdetect (https://github.com/Zeex/samp-plugin-...etect/releases) and load it first in plugins line or install nativechecker (https://sampforum.blast.hk/showthread.php?tid=249226) and load it last in plugins line.

Now start the server. If it reports run time error 19, close the server, open server_log and copy the latest output. Paste it in a pastebin.com or here in tags [pawn][/pawn] or and it will report the name of the functions. We will also be able to review your plugins and tell you exactly which is the problem.
Reply
#3

i download but still this error

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[18:49:42] filterscripts = "" (string)
[18:49:42]
[18:49:42] Server Plugins
[18:49:42] --------------
[18:49:42] Loading plugin: Streamer
[18:49:42] Failed.
[18:49:42] Loading plugin: SSCANF
[18:49:42]

[18:49:42] ===============================

[18:49:42] sscanf plugin loaded.

[18:49:42] Version: 2.8.1

[18:49:42] © 2012 Alex "******" Cole

[18:49:42] ===============================

[18:49:42] Loaded.
[18:49:42] Loading plugin: mapandreas
[18:49:42] Loaded.
[18:49:42] Loading plugin: whirlpool
[18:49:42]
[18:49:42] ==================
[18:49:42]
[18:49:42] Whirlpool loaded
[18:49:42]
[18:49:42] ==================
[18:49:42]
[18:49:42] Loaded.
[18:49:42] Loading plugin: crashdetect
[18:49:42] CrashDetect plugin 4.19
[18:49:42] Loaded.
[18:49:42] Loading plugin: nativechecker
[18:49:42] Loaded.
[18:49:42] Loaded 5 plugins.

[18:49:42]
[18:49:42] Filterscripts
[18:49:42] ---------------
[18:49:42] Loaded 0 filterscripts.

[18:49:42] Error: Function not registered: 'FreezeSyncData'
[18:49:42] Error: Function not registered: 'SetFakeFacingAngle'
[18:49:42] Error: Function not registered: 'SendLastSyncData'
[18:49:42] Error: Function not registered: 'ClearAnimationsForPlayer'
[18:49:42] Error: Function not registered: 'SetKnifeSync'
[18:49:42] Error: Function not registered: 'SetFakeHealth'
[18:49:42] Error: Function not registered: 'SetFakeArmour'
[18:49:42] Error: Function not registered: 'PlayerTextDrawSetPosition'
[18:49:42] Error: Function not registered: 'SpawnPlayerForWorld'
[18:49:42] Error: Function not registered: 'BS_ReadValue'
[18:49:42] Error: Function not registered: 'BS_New'
[18:49:42] Error: Function not registered: 'BS_WriteValue'
[18:49:42] Error: Function not registered: 'BS_RPC'
[18:49:42] Error: Function not registered: 'BS_Delete'
[18:49:42] Error: Function not registered: 'BS_ResetReadPointer'
[18:49:42] Error: Function not registered: 'cache_get_row_count'
[18:49:42] Error: Function not registered: 'CreateDynamicObject'
[18:49:42] Error: Function not registered: 'CreateDynamicObjectEx'
[18:49:42] Error: Function not registered: 'SetDynamicObjectMaterial'
[18:49:42] Error: Function not registered: 'SetDynamicObjectMaterialText'
[18:49:42] Error: Function not registered: 'GetDynamicObjectPos'
[18:49:42] Error: Function not registered: 'Streamer_GetItemPos'
[18:49:42] Error: Function not registered: 'GetDynamicActorPos'
[18:49:42] Error: Function not registered: 'PR_RegHandler'
[18:49:42] Error: Function not registered: 'BS_IgnoreBits'
[18:49:42] Error: Function not registered: 'ThreadW'
[18:49:42] Error: Function not registered: 'cache_warning_count'
[18:49:42] Error: Function not registered: 'mysql_format'
[18:49:42] Error: Function not registered: 'mysql_tquery'
[18:49:42] Error: Function not registered: 'Streamer_SetVisibleItems'
[18:49:42] Error: Function not registered: 'CreateDynamic3DTextLabel'
[18:49:42] Error: Function not registered: 'mysql_init_options'
[18:49:42] Error: Function not registered: 'mysql_set_option'
[18:49:42] Error: Function not registered: 'mysql_log'
[18:49:42] Error: Function not registered: 'mysql_connect'
[18:49:42] Error: Function not registered: 'mysql_errno'
[18:49:42] Error: Function not registered: 'mysql_pquery'
[18:49:42] Error: Function not registered: 'AttachDynamicObjectToVehicle'
[18:49:42] Error: Function not registered: 'CreateDynamicCP'
[18:49:42] Error: Function not registered: 'file_read'
[18:49:42] Error: Function not registered: 'cache_get_value_name'
[18:49:42] Error: Function not registered: 'cache_get_value_name_int'
[18:49:42] Error: Function not registered: 'DestroyDynamicObject'
[18:49:42] Error: Function not registered: 'DestroyDynamic3DTextLabel'
[18:49:42] Error: Function not registered: 'cache_get_value_name_float'
[18:49:42] Error: Function not registered: 'UpdateDynamic3DTextLabelText'
[18:49:42] Error: Function not registered: 'cache_is_value_name_null'
[18:49:42] Error: Function not registered: 'cache_insert_id'
[18:49:42] Error: Function not registered: 'DestroyDynamicCP'
[18:49:42] Error: Function not registered: 'IsValidDynamicObject'
[18:49:42] Error: Function not registered: 'cache_get_value_index_int'
[18:49:42] Error: Function not registered: 'MoveDynamicObject'
[18:49:42] Error: Function not registered: 'SetDynamicObjectRot'
[18:49:42] Error: Function not registered: 'Streamer_Update'
[18:49:42] Error: Function not registered: 'Streamer_GetIntData'
[18:49:42] [debug] Run time error 19: "File or function is not found"
[18:49:42] [debug] FreezeSyncData
[18:49:42] [debug] SetFakeFacingAngle
[18:49:42] [debug] SendLastSyncData
[18:49:42] [debug] ClearAnimationsForPlayer
[18:49:42] [debug] SetKnifeSync
[18:49:42] [debug] SetFakeHealth
[18:49:42] [debug] SetFakeArmour
[18:49:42] [debug] PlayerTextDrawSetPosition
[18:49:42] [debug] SpawnPlayerForWorld
[18:49:42] [debug] BS_ReadValue
[18:49:42] [debug] BS_New
[18:49:42] [debug] BS_WriteValue
[18:49:42] [debug] BS_RPC
[18:49:42] [debug] BS_Delete
[18:49:42] [debug] BS_ResetReadPointer
[18:49:42] [debug] cache_get_row_count
[18:49:42] [debug] CreateDynamicObject
[18:49:42] [debug] CreateDynamicObjectEx
[18:49:42] [debug] SetDynamicObjectMaterial
[18:49:42] [debug] SetDynamicObjectMaterialText
[18:49:42] [debug] GetDynamicObjectPos
[18:49:42] [debug] Streamer_GetItemPos
[18:49:42] [debug] GetDynamicActorPos
[18:49:42] [debug] PR_RegHandler
[18:49:42] [debug] BS_IgnoreBits
[18:49:42] [debug] ThreadW
[18:49:42] [debug] cache_warning_count
[18:49:42] [debug] mysql_format
[18:49:42] [debug] mysql_tquery
[18:49:42] [debug] Streamer_SetVisibleItems
[18:49:42] [debug] CreateDynamic3DTextLabel
[18:49:42] [debug] mysql_init_options
[18:49:42] [debug] mysql_set_option
[18:49:42] [debug] mysql_log
[18:49:42] [debug] mysql_connect
[18:49:42] [debug] mysql_errno
[18:49:42] [debug] mysql_pquery
[18:49:42] [debug] AttachDynamicObjectToVehicle
[18:49:42] [debug] CreateDynamicCP
[18:49:42] [debug] file_read
[18:49:42] [debug] cache_get_value_name
[18:49:42] [debug] cache_get_value_name_int
[18:49:42] [debug] DestroyDynamicObject
[18:49:42] [debug] DestroyDynamic3DTextLabel
[18:49:42] [debug] cache_get_value_name_float
[18:49:42] [debug] UpdateDynamic3DTextLabelText
[18:49:42] [debug] cache_is_value_name_null
[18:49:42] [debug] cache_insert_id
[18:49:42] [debug] DestroyDynamicCP
[18:49:42] [debug] IsValidDynamicObject
[18:49:42] [debug] cache_get_value_index_int
[18:49:42] [debug] MoveDynamicObject
[18:49:42] [debug] SetDynamicObjectRot
[18:49:42] [debug] Streamer_Update
[18:49:42] [debug] Streamer_GetIntData
[18:49:42] [debug] Run time error 19: "File or function is not found"
[18:49:42] [debug] FreezeSyncData
[18:49:42] [debug] SetFakeFacingAngle
[18:49:42] [debug] SendLastSyncData
[18:49:42] [debug] ClearAnimationsForPlayer
[18:49:42] [debug] SetKnifeSync
[18:49:42] [debug] SetFakeHealth
[18:49:42] [debug] SetFakeArmour
[18:49:42] [debug] PlayerTextDrawSetPosition
[18:49:42] [debug] SpawnPlayerForWorld
[18:49:42] [debug] BS_ReadValue
[18:49:42] [debug] BS_New
[18:49:42] [debug] BS_WriteValue
[18:49:42] [debug] BS_RPC
[18:49:42] [debug] BS_Delete
[18:49:42] [debug] BS_ResetReadPointer
[18:49:42] [debug] cache_get_row_count
[18:49:42] [debug] CreateDynamicObject
[18:49:42] [debug] CreateDynamicObjectEx
[18:49:42] [debug] SetDynamicObjectMaterial
[18:49:42] [debug] SetDynamicObjectMaterialText
[18:49:42] [debug] GetDynamicObjectPos
[18:49:42] [debug] Streamer_GetItemPos
[18:49:42] [debug] GetDynamicActorPos
[18:49:42] [debug] PR_RegHandler
[18:49:42] [debug] BS_IgnoreBits
[18:49:42] [debug] ThreadW
[18:49:42] [debug] cache_warning_count
[18:49:42] [debug] mysql_format
[18:49:42] [debug] mysql_tquery
[18:49:42] [debug] Streamer_SetVisibleItems
[18:49:42] [debug] CreateDynamic3DTextLabel
[18:49:42] [debug] mysql_init_options
[18:49:42] [debug] mysql_set_option
[18:49:42] [debug] mysql_log
[18:49:42] [debug] mysql_connect
[18:49:42] [debug] mysql_errno
[18:49:42] [debug] mysql_pquery
[18:49:42] [debug] AttachDynamicObjectToVehicle
[18:49:42] [debug] CreateDynamicCP
[18:49:42] [debug] file_read
[18:49:42] [debug] cache_get_value_name
[18:49:42] [debug] cache_get_value_name_int
[18:49:42] [debug] DestroyDynamicObject
[18:49:42] [debug] DestroyDynamic3DTextLabel
[18:49:42] [debug] cache_get_value_name_float
[18:49:42] [debug] UpdateDynamic3DTextLabelText
[18:49:42] [debug] cache_is_value_name_null
[18:49:42] [debug] cache_insert_id
[18:49:42] [debug] DestroyDynamicCP
[18:49:42] [debug] IsValidDynamicObject
[18:49:42] [debug] cache_get_value_index_int
[18:49:42] [debug] MoveDynamicObject
[18:49:42] [debug] SetDynamicObjectRot
[18:49:42] [debug] Streamer_Update
[18:49:42] [debug] Streamer_GetIntData
[18:49:42] Script[gamemodes/codmw3.amx]: Run time error 19: "File or function is not found"
[18:49:42] Number of vehicle models: 0
Reply
#4

It's not magic to fix the problem. It just provides more details so we can fix the problem.

First of all, load crashdetect first plugin because streamer plugins fails for that. Even after that, if it still fails to load you'll need to install Microsoft Visual C++ 2015 Redistributable Package (x86 version).

Let's move on with the functions:
SetKnifeSync -> SKY plugin (https://sampforum.blast.hk/showthread.php?tid=563442)
BS_ReadValue -> RakNet plugin (https://sampforum.blast.hk/showthread.php?tid=640306)
ThreadW -> Threaded fread/fwrite (https://sampforum.blast.hk/showthread.php?tid=286453)
cache_get_value_name -> MySQL R40+ (https://github.com/pBlueG/SA-MP-MySQL/releases)
file_read -> FileManager (https://sampforum.blast.hk/showthread.php?tid=92246)

You need to load all the plugins I mentioned above.
Reply
#5

Show your server settings.
Reply
#6

Still same Error


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[12:58:02] filterscripts = "" (string)
[12:58:02]
[12:58:02] Server Plugins
[12:58:02] --------------
[12:58:02] Loading plugin: mysql
[12:58:02] Failed.
[12:58:02] Loading plugin: crashdetect
[12:58:02] CrashDetect plugin 4.19
[12:58:02] Loaded.
[12:58:02] Loading plugin: Streamer
[12:58:02] Failed.
[12:58:02] Loading plugin: SSCANF
[12:58:02]

[12:58:02] ===============================

[12:58:02] sscanf plugin loaded.

[12:58:02] Version: 2.8.1

[12:58:02] © 2012 Alex "******" Cole

[12:58:02] ===============================

[12:58:02] Loaded.
[12:58:02] Loading plugin: mapandreas
[12:58:02] Loaded.
[12:58:02] Loading plugin: whirlpool
[12:58:02]
[12:58:02] ==================
[12:58:02]
[12:58:02] Whirlpool loaded
[12:58:02]
[12:58:02] ==================
[12:58:02]
[12:58:02] Loaded.
[12:58:02] Loading plugin: FileManager
[12:58:02] ******************
[12:58:02] ** FILE MANAGER **
[12:58:02] ** Loaded **
[12:58:02] ** Version 1.5 **
[12:58:02] ******************
[12:58:02] Loaded.
[12:58:02] Loading plugin: pawnraknet
[12:58:02] Pawn.RakNet plugin v1.2.0 by urShadow loaded
[12:58:02] Loaded.
[12:58:02] Loading plugin: SKY
[12:58:02] Loaded.
[12:58:02] Loaded 7 plugins.

[12:58:02]
[12:58:02] Filterscripts
[12:58:02] ---------------
[12:58:02] Loaded 0 filterscripts.

[12:58:02] [debug] Run time error 19: "File or function is not found"
[12:58:02] [debug] cache_get_row_count
[12:58:02] [debug] CreateDynamicObject
[12:58:02] [debug] CreateDynamicObjectEx
[12:58:02] [debug] SetDynamicObjectMaterial
[12:58:02] [debug] SetDynamicObjectMaterialText
[12:58:02] [debug] GetDynamicObjectPos
[12:58:02] [debug] Streamer_GetItemPos
[12:58:02] [debug] GetDynamicActorPos
[12:58:02] [debug] ThreadW
[12:58:02] [debug] cache_warning_count
[12:58:02] [debug] mysql_format
[12:58:02] [debug] mysql_tquery
[12:58:02] [debug] Streamer_SetVisibleItems
[12:58:02] [debug] CreateDynamic3DTextLabel
[12:58:02] [debug] mysql_init_options
[12:58:02] [debug] mysql_set_option
[12:58:02] [debug] mysql_log
[12:58:02] [debug] mysql_connect
[12:58:02] [debug] mysql_errno
[12:58:02] [debug] mysql_pquery
[12:58:02] [debug] AttachDynamicObjectToVehicle
[12:58:02] [debug] CreateDynamicCP
[12:58:02] [debug] cache_get_value_name
[12:58:02] [debug] cache_get_value_name_int
[12:58:02] [debug] DestroyDynamicObject
[12:58:02] [debug] DestroyDynamic3DTextLabel
[12:58:02] [debug] cache_get_value_name_float
[12:58:02] [debug] UpdateDynamic3DTextLabelText
[12:58:02] [debug] cache_is_value_name_null
[12:58:02] [debug] cache_insert_id
[12:58:02] [debug] DestroyDynamicCP
[12:58:02] [debug] IsValidDynamicObject
[12:58:02] [debug] cache_get_value_index_int
[12:58:02] [debug] MoveDynamicObject
[12:58:02] [debug] SetDynamicObjectRot
[12:58:02] [debug] Streamer_Update
[12:58:02] [debug] Streamer_GetIntData
[12:58:02] [debug] Run time error 19: "File or function is not found"
[12:58:02] [debug] cache_get_row_count
[12:58:02] [debug] CreateDynamicObject
[12:58:02] [debug] CreateDynamicObjectEx
[12:58:02] [debug] SetDynamicObjectMaterial
[12:58:02] [debug] SetDynamicObjectMaterialText
[12:58:02] [debug] GetDynamicObjectPos
[12:58:02] [debug] Streamer_GetItemPos
[12:58:02] [debug] GetDynamicActorPos
[12:58:02] [debug] ThreadW
[12:58:02] [debug] cache_warning_count
[12:58:02] [debug] mysql_format
[12:58:02] [debug] mysql_tquery
[12:58:02] [debug] Streamer_SetVisibleItems
[12:58:02] [debug] CreateDynamic3DTextLabel
[12:58:02] [debug] mysql_init_options
[12:58:02] [debug] mysql_set_option
[12:58:02] [debug] mysql_log
[12:58:02] [debug] mysql_connect
[12:58:02] [debug] mysql_errno
[12:58:02] [debug] mysql_pquery
[12:58:02] [debug] AttachDynamicObjectToVehicle
[12:58:02] [debug] CreateDynamicCP
[12:58:02] [debug] cache_get_value_name
[12:58:02] [debug] cache_get_value_name_int
[12:58:02] [debug] DestroyDynamicObject
[12:58:02] [debug] DestroyDynamic3DTextLabel
[12:58:02] [debug] cache_get_value_name_float
[12:58:02] [debug] UpdateDynamic3DTextLabelText
[12:58:02] [debug] cache_is_value_name_null
[12:58:02] [debug] cache_insert_id
[12:58:02] [debug] DestroyDynamicCP
[12:58:02] [debug] IsValidDynamicObject
[12:58:02] [debug] cache_get_value_index_int
[12:58:02] [debug] MoveDynamicObject
[12:58:02] [debug] SetDynamicObjectRot
[12:58:02] [debug] Streamer_Update
[12:58:02] [debug] Streamer_GetIntData
[12:58:02] Script[gamemodes/codmw3.amx]: Run time error 19: "File or function is not found"
[12:58:02] Number of vehicle models: 0
Reply
#7

this is my server cfg

echo Executing Server Config...
lanmode 0
rcon_password sadad
maxplayers 50
port 7777
hostname SA-MP 0.3 Server
gamemode0 codmw3
filterscripts
announce 0
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language English
plugins mysql crashdetect Streamer SSCANF mapandreas whirlpool FileManager pawnraknet SKY
Reply
#8

Latest versions of both streamer and mysql plugins require the x86 version of 2015: https://www.microsoft.com/en-us/down....aspx?id=48145

You also forgot to load this plugin: https://sampforum.blast.hk/showthread.php?tid=286453
Reply
#9

Thank you soo much its working but problem is database i dont know about database help me
Reply
#10

Quote:
Originally Posted by sabih
Посмотреть сообщение
Thank you soo much its working but problem is database i dont know about database help me
https://sampforum.blast.hk/showthread.php?tid=644891
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)