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=607806)



warning 202: number of arguments does not match definition - SonicFreeStyle - 24.05.2016

Help please!
Quote:

warning 202: number of arguments does not match definition

Line:
pawn Код:
#if defined CreateDynamicObject
Piece of code:
pawn Код:
#if defined CreateDynamicObject //(line with error)
                creo = CreateDynamicObject( oid, start[0], start[1], start[2], ang[0] + arx, ang[1] + ary, ang[2] + 180 + arz, worldid, interiorid, playerid, StreamDistance, DrawDistance);
            #else
                #pragma unused worldid, interiorid, playerid, StreamDistance
            #endif



Re: warning 202: number of arguments does not match definition - Slawiii - 24.05.2016

Check this maybe you forget an argument
PHP код:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_OBJECT_SDFloat:drawdistance STREAMER_OBJECT_DDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1priority 0); 



Re: warning 202: number of arguments does not match definition - SonicFreeStyle - 24.05.2016

Nope :/ the error is in "#if defined CreateDynamicObject" and not at the CreateDynamic line


Re: warning 202: number of arguments does not match definition - Slawiii - 24.05.2016

ah ok so change the #if defined CreateDynamicObject to #if defined CRETAEDYNAMICOBJECT