Streamer error fixed, New error, Script[gamemodes/PLA.amx]: Run time error 19: "File or function is not found" -
Bashur - 23.02.2015
I have the streamer plugin Version: v2.7.5.2
And i still get this code while starting up:
Код:
# amicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] *** Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s), but found 11
[16:03:07] Loading filterscript '3DText.amx'...
[16:03:07]
--------------------------------------
[16:03:07] 3D Text Creator V1.0 By Zero_Cool
[16:03:07] Loaded
[16:03:07] --------------------------------------
[16:03:07] Loading filterscript 'musicsteef.amx'...
[16:03:07]
--------------------------------------
[16:03:07] LiveRadio script by Stephan
[16:03:07] --------------------------------------
[16:03:07] Loaded 3 filterscripts.
[16:03:07] Script[gamemodes/script.amx]: Run time error 19: "File or function is not found"
[16:03:07] Number of vehicle models: 0
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Smally - 23.02.2015
Show us your CreateDynamicObject code in your script
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Bashur - 23.02.2015
It's scattered around the script with gates/toll booths etc
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Smally - 23.02.2015
Well give us an example please.
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Bashur - 23.02.2015
This is an example off the toll booths
Код:
TollBooths[0] = CreateDynamicObject(968,1752.0000000,533.3994100,26.8000000,359.9560000,88.6930000,161.2570000); //object(barrierturn) (nbl)
GetDynamicObjectRot(TollBooths[0], TBX, OriginalRotation[0], TBZ);
TollBooths[1] = CreateDynamicObject(968,1752.3000500,533.2999900,26.8000000,359.9590000,88.6960000,340.2890000); //object(barrierturn) (nbr)
GetDynamicObjectRot(TollBooths[1], TBX, OriginalRotation[1], TBZ);
TollBooths[2] = CreateDynamicObject(968,1731.8000500,529.5999800,27.3000000,359.9560000,88.6930000,341.2040000); //object(barrierturn) (sbl)
GetDynamicObjectRot(TollBooths[2], TBX, OriginalRotation[2], TBZ);
TollBooths[3] = CreateDynamicObject(968,1731.5000000,529.7000100,27.3000000,359.9560000,88.6930000,161.2610000); //object(barrierturn) (sbr)
GetDynamicObjectRot(TollBooths[3], TBX, OriginalRotation[3], TBZ);
// Constitution Bridge
TollBooths[4] = CreateDynamicObject(968, 421.34, 615.01, 18.91, 0.00, 270.00, 214.97); //Barrier (Closed)
GetDynamicObjectRot(TollBooths[4], TBX, OriginalRotation[4], TBZ);
TollBooths[5] = CreateDynamicObject(968, 420.09, 614.15, 18.91, 0.00, 90.00, 214.97); //Barrier (Closed)
GetDynamicObjectRot(TollBooths[5], TBX, OriginalRotation[5], TBZ);
// Gateway Bridge
TollBooths[6] = CreateDynamicObject(968, -136.34, 488.91, 11.29, -5.50, 270.00, -13.70); //Barrier (Closed)
GetDynamicObjectRot(TollBooths[6], TBX, OriginalRotation[6], TBZ);
TollBooths[7] = CreateDynamicObject(968, -135.65, 488.73, 11.35, -5.50, 90.00, -13.70); //Barrier (Closed)
GetDynamicObjectRot(TollBooths[7], TBX, OriginalRotation[7], TBZ);
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Smally - 23.02.2015
Did you update both the plugin and the include?
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Bashur - 23.02.2015
Yep to the same version from the same .rar Version: v2.7.5.2
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Smally - 23.02.2015
Try recompiling your script and uploading it.
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Bashur - 23.02.2015
Already did 5 times, Still the same
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Smally - 23.02.2015
Open your streamer.inc and search for native CreateDynamicObject and paste the code here.
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Bashur - 23.02.2015
Now i have another problem: Script[gamemodes/script.amx]: Run time error 19: "File or function is not found
I recompiled with latest plugins/includes, But nothing...
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Smally - 23.02.2015
There's a good chance I might not reply for a while as I have to go out with work. Paste your include lines from the top of your script and the plugins line in your server.cfg, and if I get time I'll reply on how to fix it/
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Bashur - 23.02.2015
Script:
#include <a_samp>
#include <streamer>
#include <a_zones>
#include <a_mysql>
#include <foreach>
#include <djson>
#include <yom_buttons>
#include <progress>
#include <YSI\y_timers>
#include <ZCMD>
#include <sscanf2>
#include <socket>
#include <FloodControl>
//Custom includes
#include <Flares>
#include <Cones>
#include <PublicWorks>
server.cfg:
streamer.so
sscanf.so
mysql.so
socket.so
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
PowerPC603 - 23.02.2015
You're providing 7 values, which is perfectly fine as only those 7 are required values:
Код:
CreateDynamicObject(968,1752.0000000,533.3994100,26.8000000,359.9560000,88.6930000,161.2570000); //object(barrierturn) (nbl)
There are actually 12 values in the definition of the function, of which the last 5 are optional:
Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
Since you skipped the optional parameters, it must be that your include is outdated compared to the plugin, which expects 12 parameters (given by the include, which automatically adds the optional ones but only supplies 11 values to the plugin).
Try to delete the streamer.inc file first from pawno/includes, then extract it again from the .rar file.
Then recompile your script.
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
muhsah007 - 08.03.2015
I also have the same problem
my native code is that
PHP код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
PHP код:
CreateDynamicObject(18030, 1174.7900390625, -1343.57421875, 2424.4133300781, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(14466, 1214.5484619141, -1360.7130126953, 2432.2053222656, 0, 0, 270.5, .interiorid = 1);
CreateDynamicObject(7191, 1191.828125, -1351.0107421875, 2421.6208496094, 0, 270, 0, .interiorid = 1);
CreateDynamicObject(14782, 1187.7976074219, -1353.7375488281, 2423.0622558594, 0, 0, 90.5, .interiorid = 1);
CreateDynamicObject(1523, 1190.55078125, -1350.01953125, 2422.2648925781, 0, 0, 180.24719238281, .interiorid = 1);
CreateDynamicObject(18070, 1169.6414794922, -1345.1927490234, 2422.5458984375, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(4724, 1158.5886230469, -1353.6053466797, 2423.7512207031, 0, 0, 0.25, .interiorid = 1);
CreateDynamicObject(2001, 1163.2530517578, -1355.927734375, 2422.0461425781, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(932, 1185.4672851563, -1355.8714599609, 2422.0461425781, 0, 0, 272.5, .interiorid = 1);
CreateDynamicObject(932, 1183.7150878906, -1355.9479980469, 2422.0461425781, 0, 0, 272.49938964844, .interiorid = 1);
CreateDynamicObject(932, 1182.11328125, -1355.9810791016, 2422.0461425781, 0, 0, 272.49938964844, .interiorid = 1);
CreateDynamicObject(932, 1180.4866943359, -1355.9487304688, 2422.0461425781, 0, 0, 272.49938964844, .interiorid = 1);
CreateDynamicObject(1557, 1168.1516113281, -1357.0413818359, 2422.0461425781, 0, 0, 359.5, .interiorid = 1);
CreateDynamicObject(1557, 1171.1590576172, -1357.0489501953, 2422.0461425781, 0, 0, 180, .interiorid = 1);
CreateDynamicObject(2596, 1156.7939453125, -1348.4765625, 2425.3452148438, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(2596, 1163.4686279297, -1354.6719970703, 2425.3083496094, 0, 0, 270.25, .interiorid = 1);
CreateDynamicObject(2773, 1185.4097900391, -1354.6234130859, 2422.5634765625, 0, 0, 90.25, .interiorid = 1);
CreateDynamicObject(2773, 1183.4921875, -1354.6352539063, 2422.5634765625, 0, 0, 90.247192382813, .interiorid = 1);
CreateDynamicObject(2773, 1181.576171875, -1354.6499023438, 2422.5634765625, 0, 0, 90.247192382813, .interiorid = 1);
CreateDynamicObject(2190, 1168.4984130859, -1346.9685058594, 2423.0561523438, 0, 0.25, 182.75, .interiorid = 1);
CreateDynamicObject(2190, 1170.7844238281, -1346.9844970703, 2423.0561523438, 0, 0.2471923828125, 182.74658203125, .interiorid = 1);
CreateDynamicObject(1663, 1170.712890625, -1345.3366699219, 2422.5063476563, 0, 0, 17.25, .interiorid = 1);
CreateDynamicObject(1663, 1168.3572998047, -1345.3454589844, 2422.5063476563, 0, 0, 355.99853515625, .interiorid = 1);
CreateDynamicObject(2894, 1169.7390136719, -1347.2918701172, 2423.0561523438, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(7930, 1189.5693359375, -1345.9460449219, 2423.5441894531, 90, 180.0054931640600549316406, 269.98352050781, .interiorid = 1);
CreateDynamicObject(3962, 1156.3192138672, -1357.0517578125, 2424.2602539063, 0, 0, 268.5, .interiorid = 1);
CreateDynamicObject(2257, 1152.9465332031, -1351.5755615234, 2424.3505859375, 0, 180, 89.999969482422, .interiorid = 1);
CreateDynamicObject(2243, 1166.4963378906, -1348.0822753906, 2422.3195800781, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(2243, 1172.7916259766, -1347.9880371094, 2422.3195800781, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(2954, 1190.2352294922, -1346.0294189453, 2422.0461425781, 0, 0, 270.5, .interiorid = 1);
CreateDynamicObject(1726, 1155.638671875, -1348.72265625, 2422.0461425781, 0, 0, 0.25, .interiorid = 1);
CreateDynamicObject(1726, 1153.4948730469, -1352.5561523438, 2422.0461425781, 0, 0, 89.997192382813, .interiorid = 1);
CreateDynamicObject(1726, 1157.3165283203, -1355.7957763672, 2422.0461425781, 0, 0, 179.99450683594, .interiorid = 1);
CreateDynamicObject(1727, 1154.0897216797, -1354.7977294922, 2422.0461425781, 0, 0, 123, .interiorid = 1);
CreateDynamicObject(1727, 1153.9633789063, -1349.6390380859, 2422.0461425781, 0, 0, 44.997436523438, .interiorid = 1);
CreateDynamicObject(1727, 1162.5498046875, -1354.5593261719, 2422.0461425781, 0, 0, 220.99743652344, .interiorid = 1);
CreateDynamicObject(7191, 1157.6741943359, -1339.1177978516, 2424.0207519531, 0, 0, 270, .interiorid = 1);
CreateDynamicObject(7191, 1157.6701660156, -1338.3753662109, 2424.0207519531, 0, 0, 270, .interiorid = 1);
CreateDynamicObject(1776, 1153.2979736328, -1343.3521728516, 2423.1455078125, 0, 0, 90.75, .interiorid = 1);
CreateDynamicObject(1209, 1153.2958984375, -1346.2855224609, 2422.0461425781, 0, 0, 90.5, .interiorid = 1);
CreateDynamicObject(7191, 1167.7000732422, -1313.4320068359, 2427.9807128906, 0, 0, 180, .interiorid = 1);
CreateDynamicObject(7191, 1191.1739501953, -1335.5490722656, 2424.0207519531, 0, 0, 90, .interiorid = 1);
CreateDynamicObject(7191, 1167.69921875, -1313.431640625, 2424.0207519531, 0, 0, 179.99450683594, .interiorid = 1);
CreateDynamicObject(7191, 1191.173828125, -1335.548828125, 2427.9807128906, 0, 0, 90, .interiorid = 1);
CreateDynamicObject(2603, 1154.3084716797, -1331.0260009766, 2422.4995117188, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(2603, 1157.8651123047, -1331.033203125, 2422.4995117188, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(2603, 1162.1901855469, -1330.9475097656, 2422.4995117188, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(2603, 1165.8120117188, -1330.8693847656, 2422.4995117188, 0, 0, 0, .interiorid = 1);
CreateDynamicObject(2596, 1156.2908935547, -1337.9664306641, 2424.7763671875, 0, 0, 179.25, .interiorid = 1);
CreateDynamicObject(2596, 1163.3677978516, -1337.9395751953, 2424.7763671875, 0, 0, 179.24743652344, .interiorid = 1);
CreateDynamicObject(3383, 1175.9519042969, -1330.5677490234, 2422.0461425781, 0, 0, 179.75, .interiorid = 1);
CreateDynamicObject(3383, 1183.3975830078, -1330.3992919922, 2422.0461425781, 0, 0, 179.74731445313, .interiorid = 1);
CreateDynamicObject(3388, 1172.5631103516, -1329.8569335938, 2422.0461425781, 0, 0, 90.25, .interiorid = 1);
CreateDynamicObject(3388, 1180.3153076172, -1329.8544921875, 2422.0461425781, 0, 0, 90.247192382813, .interiorid = 1);
CreateDynamicObject(3394, 1184.6655273438, -1334.9022216797, 2422.0461425781, 0, 0, 269.75, .interiorid = 1);
CreateDynamicObject(3394, 1175.7877197266, -1334.8275146484, 2422.0461425781, 0, 0, 269.74731445313, .interiorid = 1);
And The Interior Does'nt Appear.
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
biker122 - 08.03.2015
The only solution that I have is:
1. Get the latest streamer version (plugins & includes) [Looks like you already have it]
2. Put the streamer.inc inside pawno/include folder.
3. Put the streamer.so (or) streamer.dll inside your plugins folder
** 4. Open your script (WARNING: Don't just double click on the .pwn file and open it, as it may use a different pawno from a different directory. So go to the pawno folder which is located inside your script directory, and compile your script once again with it.)
I've come across this problem for a few times, and this has helped me fix it!
Good luck.
Re: Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include -
Yousha - 16.03.2015
Then RECOMPILE your Filterscripter/GM with NEW version of
streamer.