Error CreateDynamicMapIcon:Expecting 9 parameter[s],But Found 10
#1

Please Tell Me How i can Fix This Error Please.Please Tell He What Code Of script u Need To Fix it I Am getting This Error In Samp-server.exe
Reply
#2

Hello!

Can you send us your code which cause this error, please? Then I can explain you what you forgot or what do you have to change.
Reply
#3

I Think This Because In The Script There is Only This Code With Name CreateDynamicMapIcon Remember That I am Geting This Error While Running The Server Not On Compiling
Код:
new string[256];
	
	if(hInfo[houseid][hSale] == 0)
	{
		format(string, 256, ""white"HouseID: "red"%d\n"green"House for Sale!\n"white"Price: "red"$%d\n"white"Interior: "green"%s\n"white"Level: "red"%d\n\n"white"/buyhouse to buy the house.", houseid, hInfo[houseid][hPrice], hInfo[houseid][hIName], hInfo[houseid][hLevel]);
		hInfo[houseid][hMapIcon] = CreateDynamicMapIcon(hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], SALE_ICON, -1, 0, 0, -1, STREAM_DISTANCES, MAPICON_LOCAL);
		hInfo[houseid][hPickup] = CreateDynamicPickup(SALE_PICKUP, 1, hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], 0, 0, -1, STREAM_DISTANCES);
	}
	else
	{
	    if(hInfo[houseid][hLocked] == 0)
	    {
		    if(strcmp(hInfo[houseid][hName], "None", true) == 0)
		    {
		    	format(string, 256, ""white"HouseID: "red"%d\n"green"Unlock\n"white"House Own by: "red"%s\n"white"Interior: "green"%s\n"white"Level: "red"%d\n"white"Price: "green"$%d\n\n"white"Type /henter to enter inside.", houseid, hInfo[houseid][hOwner], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
		    }
		    else
		    {
		    	format(string, 256, ""white"HouseID: "red"%d\n"green"Unlock\n"white"House Own by: "red"%s\n"white"Name: "green"%s\n"white"Interior: "red"%s\n"white"Level: "red"%d\n"white"Price: "green"$%d\n\n"white"Type /henter to enter inside.", houseid, hInfo[houseid][hOwner], hInfo[houseid][hName], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
			}
		}
		else
		{
		    if(strcmp(hInfo[houseid][hName], "None", true) == 0)
		    {
		    	format(string, 256, ""white"HouseID: "red"%d\n"red"Locked\n"white"House Own by: "red"%s\n"white"Interior: "green"%s\n"white"Level: "red"%d\n"white"Price: "green"$%d\n\n"white"Type /henter to enter inside.", houseid, hInfo[houseid][hOwner], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
		    }
		    else
		    {
		    	format(string, 256, ""white"HouseID: "red"%d\n"red"Locked\n"white"House Own by: "red"%s\n"white"Name: "green"%s\n"white"Interior: "red"%s\n"white"Level: "red"%d\n"white"Price: "green"$%d\n\n"white"Type /henter to enter inside.", houseid, hInfo[houseid][hOwner], hInfo[houseid][hName], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
			}
		}
		hInfo[houseid][hMapIcon] = CreateDynamicMapIcon(hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], NOTSALE_ICON, -1, 0, 0, -1, STREAM_DISTANCES, MAPICON_LOCAL);
		hInfo[houseid][hPickup] = CreateDynamicPickup(NOTSALE_PICKUP, 1, hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], 0, 0, -1, STREAM_DISTANCES);
	}
    hInfo[houseid][hLabel] = CreateDynamic3DTextLabel(string, -1, hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], STREAM_DISTANCES, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1, STREAM_DISTANCES);
	hInfo[houseid][hCP] = CreateDynamicCP(hInfo[houseid][ExitCPPos][0], hInfo[houseid][ExitCPPos][1], hInfo[houseid][ExitCPPos][2], 1.0, hInfo[houseid][hWorld], hInfo[houseid][hInterior], -1, 15.0);
	return 1;
}
Reply
#4

Go to server folder and open Server log. Txt and copy it and paste it here .
Then i will know the error and help u.


Also try to get new plugins and try to re-combile.
Reply
#5

CreateDynamicMapIcon(hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], NOTSALE_ICON, -1, 0, 0, -1, STREAM_DISTANCES, MAPICON_LOCAL);

Remove ",MAPICON_LOCAL"
Reply
#6

Here Is The Server Log
Код:
----------
Loaded log file: "server_log.txt".
----------

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

[14:36:13] 
[14:36:13] Server Plugins
[14:36:13] --------------
[14:36:13]  Loading plugin: streamer.dll
[14:36:13] 

*** Streamer Plugin v2.5 by Incognito loaded ***

[14:36:13]   Loaded.
[14:36:13]  Loading plugin: sscanf.dll
[14:36:13] 

[14:36:13]  ===============================

[14:36:13]       sscanf plugin loaded.     

[14:36:13]    © 2009 Alex "******" Cole

[14:36:13]    0.3d-R2 500 Players "dnee"

[14:36:13]  ===============================

[14:36:13]   Loaded.
[14:36:13]  Loading plugin: Whirlpool.dll
[14:36:13]  
[14:36:13]  ==================
[14:36:13]  
[14:36:13]   Whirlpool loaded
[14:36:13]  
[14:36:13]  ==================
[14:36:13]  
[14:36:13]   Loaded.
[14:36:13]  Loading plugin: fixes2.dll
[14:36:13] 

[14:36:13]  ===============================

[14:36:13]        fixes plugin loaded.     

[14:36:13]    © 2012 Alex "******" Cole

[14:36:13]  ===============================
Reply
#7

Do that and tell me if it working :



Quote:
Originally Posted by Rdx
Посмотреть сообщение
CreateDynamicMapIcon(hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], NOTSALE_ICON, -1, 0, 0, -1, STREAM_DISTANCES, MAPICON_LOCAL);

Remove ",MAPICON_LOCAL"
Reply
#8

Your streamer include doesn't match with plugin, download the same include and plugin version then recomplie and run.
Reply
#9

Quote:

*** Streamer Plugin v2.5 by Incognito loaded ***

Update your streamer plugin. The currently version is 2.8.2.
https://github.com/samp-incognito/sa...ases/tag/v2.82
Reply
#10

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)