Parameter(s) problem!
#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


Messages In This Thread
Parameter(s) problem! - by HrvojeII - 21.08.2014, 13:26
Re: Parameter(s) problem! - by MicroD - 21.08.2014, 13:32
Re: Parameter(s) problem! - by Stinged - 21.08.2014, 13:35
Re: Parameter(s) problem! - by MicroD - 21.08.2014, 13:38
Re: Parameter(s) problem! - by Konstantinos - 21.08.2014, 13:53
Re: Parameter(s) problem! - by HrvojeII - 21.08.2014, 14:21
Re: Parameter(s) problem! - by HrvojeII - 21.08.2014, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)