Raised This Month: $ Target: $400
 0% 

Enum warning


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 08-06-2018 , 06:01   Enum warning
Reply With Quote #1

Please, help me to fix 2 enum warnings in stocks. The code is below:
PHP Code:

enum CS_Internal_Models
{
    
CS_DONTCHANGE 0,
    
CS_CT_URBAN 1,
    
CS_T_TERROR 2,
    
CS_T_LEET 3,
    
CS_T_ARCTIC 4,
    
CS_CT_GSG9 5,
    
CS_CT_GIGN 6,
    
CS_CT_SAS 7,
    
CS_T_GUERILLA 8,
    
CS_CT_VIP 9,
    
CZ_T_MILITIA 10,
    
CZ_CT_SPETSNAZ 11
}

enum CS_Teams
{
    
CS_TEAM_UNASSIGNED 0,
    
CS_TEAM_T 1,
    
CS_TEAM_CT 2,
    
CS_TEAM_SPECTATOR 3
}

...

stock fm_set_user_teamid, {CS_Teams,_}:team, {CS_Internal_Models,_}:model CS_DONTCHANGE )
{
    if( !
is_user_connectedid ) ) return 0

    set_pdata_int
idOFFSET_TEAM_:teamOFFSET_LINUX )
 
    if( 
model )
    {
        
set_pdata_intidOFFSET_MODEL_:modelOFFSET_LINUX )
    }

    
dllfuncDLLFunc_ClientUserInfoChangedidengfuncEngFunc_GetInfoKeyBufferid ) )

    
emessage_begin    MSG_BROADCASTg_msgid_teaminfo )
    
ewrite_byte        id )
    
ewrite_string    CS_Team_Name[_:team] )
    
emessage_end    ( )

    return 
1
}

//stock CS_Teams:fm_get_user_team( id, &{CS_Internal_Models,_}:model = CS_DONTCHANGE )
stock CS_Teams:fm_get_user_teamid )
{
    if( !
is_user_connectedid ) ) return CS_TEAM_UNASSIGNED

    
//return CS_Teams:get_pdata_int( id, OFFSET_TEAM, OFFSET_LINUX )
    
return CS_Teams:get_pdata_intidOFFSET_TEAMOFFSET_LINUX )

The warning is shown at
"stock fm_set_user_team( id, {CS_Teams,_}:team, {CS_Internal_Models,_}:model = CS_DONTCHANGE )"
and
" return CS_Teams:get_pdata_int( id, OFFSET_TEAM, OFFSET_LINUX )"

(tag mismatch)
__________________
draft is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode