Help please with this -
NitroZeth - 19.06.2017
Hi all , i need help please with this error in my server log
[17:42:51] *** Streamer Plugin: CreateDynamic3DTextLabel: Expecting 15 parameter(s), but found 13.
[17:42:51] *** Streamer Plugin: CreateDynamicPickup: Expecting 11 parameter(s), but found 9.
I know i need update the stramer plugin but i put the last version 2.9.1 but it give that errors and icons in house and biz dont create please help
Re: Help please with this -
Banditul18 - 19.06.2017
You update the include aswell? And re-compiled? Cuz that not suppose to happen if you both include and plugin on same version
Re: Help please with this -
Sew_Sumi - 19.06.2017
What are you on about banditul18, he's obviously updated the plugin, and the include, and has an outdated script now because it didn't use the extra params on the functions it uses.
You need to either rollback to the version of the include/plugin that you have to what was used to make the script, or you need to update the script to handle the updated params on the funciton.
Re: Help please with this -
crukk11 - 19.06.2017
Yes that right
Re: Help please with this -
AfiqIqbal - 19.06.2017
Make sure you do it right
PHP Code:
CreateDynamic3DTextLabel( const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, areaid = -1, priority = 0 )
PHP Code:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_PICKUP_SD, areaid = -1, priority = 0)
Re: Help please with this -
Banditul18 - 20.06.2017
Quote:
Originally Posted by Sew_Sumi
What are you on about banditul18, he's obviously updated the plugin, and the include, and has an outdated script now because it didn't use the extra params on the functions it uses.
You need to either rollback to the version of the include/plugin that you have to what was used to make the script, or you need to update the script to handle the updated params on the funciton.
|
Well let me try to explain
2.9.1 :
PHP Code:
native STREAMER_TAG_3D_TEXT_LABEL CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
2.7.5.2 :
PHP Code:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Lets compare those two functions, from the old to new one. They both have the first 13 parameters the same , so if he even use all of them the rest ones should be there cuz they have default values so they are optional. If you dont put them, is not metter, they will be still there.
Streamer developer dont put new parameters before old ones or so. His scripts are fine, only need to compile them with the new include.
Re: Help please with this -
Sew_Sumi - 20.06.2017
Quote:
Originally Posted by Banditul18
Well let me try to explain
2.9.1 :
PHP Code:
native STREAMER_TAG_3D_TEXT_LABEL CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
2.7.5.2 :
PHP Code:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Lets compare those two functions, from the old to new one. They both have the first 13 parameters the same , so if he even use all of them the rest ones should be there cuz they have default values so they are optional. If you dont put them, is not metter, they will be still there.
Streamer developer dont put new parameters before old ones or so. His scripts are fine, only need to compile them with the new include.
|
You've proven my point, yet you are still pushing the wrong direction...
His script uses the older syntax in its functions, and those functions,
in his script are outdated.
He needs to upgrade his script to match the current version, or he needs to run/use the old version, until he's capable of changing it.