SA-MP Forums Archive
warning 202: number of arguments does not match definition - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=624543)



warning 202: number of arguments does not match definition - Switch9400 - 18.12.2016

Код:
Objects_[0][i] = CreateObject( 1649, gCoords[i][0], gCoords[i][1], gCoords[i][2], -90.000000, 0.000000, 0.000000, -1, -1, -1, 150.0, 150.0 );
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][hMapIcon] = CreateDynamicMapIcon(hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], NOTSALE_ICON, -1, 0, 0, -1, STREAM_DISTANCES, MAPICON_LOCAL);
warning 202: number of arguments does not match definition


Re: warning 202: number of arguments does not match definition - BiosMarcel - 18.12.2016

https://sampwiki.blast.hk/wiki/CreateObject

PHP код:
native STREAMER_TAG_MAP_ICON CreateDynamicMapIcon(Float:xFloat:yFloat:ztypecolorworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_MAP_ICON_SDstyle MAPICON_LOCALSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1priority 0); 
(I just guessed that it is incognitos streamer, if not, check the documentation / method signature of your methods)


You have too much arguments in one of your method calls