oscar-broman / samp-weapon-config

A more consistent and responsive damage system with many new features
Apache License 2.0
93 stars 83 forks source link

number of arguments does not match definition #265

Open pungpond78 opened 1 year ago

pungpond78 commented 1 year ago
#if defined _INC_y_va
#if defined _INC_open_mp
stock Text:WC_TextDrawCreate(Float:x, Float:y, const text[], OPEN_MP_TAGS:...)
#else
stock Text:WC_TextDrawCreate(Float:x, Float:y, WC_CONST text[], GLOBAL_TAG_TYPES:...)
#endif
#else
stock Text:WC_TextDrawCreate(Float:x, Float:y, WC_CONST text[])
#endif
{
    #if defined _INC_y_va
        new Text:td = TextDrawCreate(x, y, text, ___(3));
    #else
        new Text:td = TextDrawCreate(x, y, text);
    #endif

    if (td != Text:INVALID_TEXT_DRAW) {
        s_InternalTextDraw[td] = false;
    }

    return td;
}

new Text:td = TextDrawCreate(x, y, text, ___(3)); warning umber of arguments does not match definition