warning 202: number of arguments does not match definition
#1

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
Reply
#2

Check this maybe you forget an argument
PHP код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0); 
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)