Parameter(s) problem!
#1

Ok so here is the thing, I saw many of people posting problems like this one! But here, in my script i don't know what do I have to remove to fix this! Error i get is this:
Quote:

[14:54:35] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
[14:54:35] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
[14:54:35] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
[14:54:35] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
[14:54:35] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
[14:54:35] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
[14:54:35] *** CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10

And many more but here are few lines.
I think that mistake is somewhere in this part of script
Quote:

AddHouse(0, -2723.70776, -191.29055, 4.33593, 1299.14, -794.77, 1084.00, 300000, 290000, 5, 0); //Big house
AddHouse(1, -2723.09497, -178.76841, 7.20312, 2496.65, -1696.55, 1014.74, 30000, 29000, 3, 0);//A small house
AddHouse(2, -2722.48461, -166.49708, 5.00000, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(3, -2723.28271, -162.59590, 4.34258, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(4, -2722.97753, -139.72602, 7.20312, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(5, -2723.02099, -127.88961, 5.00000, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(6, -2723.05468, -112.74087, 7.20312, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(7, -2723.26391, -105.40869, 4.34258, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(8, -2724.54858, -92.83994, 6.80943, 1299.14, -794.77, 1084.00, 100000, 91090, 5, 0); //Big house
AddHouse(9, -2689.31250, -89.36911, 4.33597, 1299.14, -794.77, 1084.00, 300000, 290000, 5, 0); //Big house
AddHouse(10, -2689.34057, -101.67318, 7.20315, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(11, -2689.61865, -114.11988, 5.00000, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(12, -2689.10400, -117.74789, 4.34258, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(13, -2689.41308, -140.96928, 7.20315, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(14, -2689.63847, -152.69717, 5.00000, 2496.65, -1696.55, 1014.74, 50000, 49000, 3, 0);//A small house
AddHouse(15, -2689.73855, -167.39914, 7.20325, 2496.65, -1696.55, 1014.74, 50000, 49000, 3, 0);//A small house
AddHouse(16, -2689.05887, -175.28932, 4.34257, 2324.33, -1144.79, 1050.71, 150000, 140000, 12, 0);//Big house
AddHouse(17, -2687.46240, -187.97042, 7.18257, 1299.14, -794.77, 1084.00, 100000, 91090, 5, 0); //Big house
AddHouse(18, -2645.14501, 804.59029, 49.97662, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(19, -2659.70556, 803.42386, 49.97656, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(20, -2738.43884, 746.748596, 49.243583, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(21, -2670.90625, 803.568725, 49.976562, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(22, -2738.48807, 755.320983, 52.807075, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(23, -2738.32209, 758.700988, 54.382812, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(24, -2677.45387, 804.247070, 49.976562, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(25, -2687.53661, 804.373962, 49.976562, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(26, -2739.82901, 771.551147, 54.382812, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(27, -2698.82911, 804.574340, 49.970275, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(28, -2709.81935, 803.588745, 49.976562, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(29, -2738.66798, 789.242065, 54.382812, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(30, -2839.93261, 866.808837, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(31, -2840.22807, 877.520874, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(32, -2839.26096, 884.765930, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(33, -2855.62982, 841.158081, 40.153347, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(34, -2858.97145, 834.775329, 39.995605, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(35, -2842.49902, 904.179687, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(36, -2843.63256, 914.512756, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(37, -2862.45703, 829.206909, 39.634624, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(38, -2844.71093, 921.721435, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(39, -2845.25439, 928.670715, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(40, -2868.04248, 820.648803, 39.355697, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(41, -2852.80761, 947.773254, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(42, -2879.61474, 797.556945, 35.509155, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(43, -2856.88867, 957.456726, 44.054687, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(44, -2879.35864, 790.245971, 35.514392, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(45, -2859.41894, 964.335266, 44.049766, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(46, -2881.15283, 780.006713, 35.253761, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(47, -2874.95874, 981.459533, 40.718750, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house
AddHouse(48, -2879.65895, 990.609252, 40.718750, 2496.65, -1696.55, 1014.74, 10000, 90000, 3, 0);//A small house
AddHouse(49, -2884.12799, 750.655822, 29.251396, 2251.85, -1138.16, 1050.63, 50000, 49000, 9, 0); //A small house
AddHouse(50, -2883.33104, 996.009216, 40.718750, 2496.65, -1696.55, 1014.74, 50000, 40000, 3, 0);//A small house

There is 1770 lines but here is just 50. Can someone tell me what is wrong? How to get 9 parameters, not 10?
Reply
#2

Are you kidding me or what? CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
Post AddHouse stock.
Reply
#3

Show us the AddHouse function. It has CreateDynamicMapIcon in it.
Reply
#4

Also make sure that you have latest version of streamer.dll/.so and streamer.inc.
Download
Reply
#5

"style" parameter has been added in CreateDynamicMapIcon function so you'll need to pass a value for it. For example, this:
pawn Код:
CreateDynamicMapIcon(2204.9468, 1986.2877, 16.7380, 52, 0);
should become:
pawn Код:
native CreateDynamicMapIcon(2204.9468, 1986.2877, 16.7380, 52, 0, .style = MAPICON_LOCAL);
Reply
#6

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Show us the AddHouse function. It has CreateDynamicMapIcon in it.
Quote:
Originally Posted by MicroD
Посмотреть сообщение
Are you kidding me or what? CreateDynamicMapIcon: Expecting 9 parameter(s), but found 10
Post AddHouse stock.
This is what it do:
Quote:

Name=[null]
Renter=ForRent
Rentable=0
Rentcost=0
Cost=300000
Sell=290000
Interior=5
Virtualworld=49
Locked=1
X=1299.140014
Y=-794.770019
Z=1084.000000
RentPay=0
RentGet=0

That is what this line create:
Quote:

AddHouse(0, -2723.70776, -191.29055, 4.33593, 1299.14, -794.77, 1084.00, 300000, 290000, 5, 0); //Big house

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
"style" parameter has been added in CreateDynamicMapIcon function so you'll need to pass a value for it. For example, this:
pawn Код:
CreateDynamicMapIcon(2204.9468, 1986.2877, 16.7380, 52, 0);
should become:
pawn Код:
native CreateDynamicMapIcon(2204.9468, 1986.2877, 16.7380, 52, 0, .style = MAPICON_LOCAL);
Sorry but I don't really understand.. Can you explain please? I am not too much of a scripter!
Reply
#7

I don't know how i did it but i fixed it.. Thanks everyone anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)