some changes i will do
PHP Code:
switch(g_iUserColor[player])
{
case 1:
{
R = 0;
G = 255;
B = 255;
}
case 2:
{
R = 255;
G = 0;
B = 0;
}
//and so on..
}
PHP Code:
formatex( szText, charsmax( szText ), "%L %L", player, "ML_HUDPREFIX", player, g_szHudMenu[g_iUserColor[ player ]][1] );
to
PHP Code:
formatex( szText, charsmax( szText ), "%l %l", "ML_HUDPREFIX", g_szHudMenu[g_iUserColor[ player ]][1] );
PHP Code:
nvault_get( g_iVault, szKey, szData, charsmax( szData ) );
parse( szData, szDataPieces[ 0 ], charsmax( szDataPieces[ ] ), szDataPieces[ 1 ], charsmax( szDataPieces[ ] ), szDataPieces[ 2 ], charsmax( szDataPieces[ ] ) );
g_iUserColor[ iPlayer ] = str_to_num( szDataPieces[ 0 ] );
g_iHudLcr[ iPlayer ] = str_to_num( szDataPieces[ 1 ] );
g_iHudUcd[ iPlayer ] = str_to_num( szDataPieces[ 2 ] );
to
PHP Code:
new iTs;
if(nvault_lookup(g_iVault, szKey, szData, charsmax(szData), iTs))
{
parse( szData, szDataPieces[ 0 ], charsmax( szDataPieces[ ] ), szDataPieces[ 1 ], charsmax( szDataPieces[ ] ), szDataPieces[ 2 ], charsmax( szDataPieces[ ] ) );
g_iUserColor[ iPlayer ] = str_to_num( szDataPieces[ 0 ] );
g_iHudLcr[ iPlayer ] = str_to_num( szDataPieces[ 1 ] );
g_iHudUcd[ iPlayer ] = str_to_num( szDataPieces[ 2 ] );
}
PHP Code:
menu_display( player, iMenu );
to
PHP Code:
if(is_user_connected(id))
menu_display( player, iMenu );
you don t need these if you are using new menus
PHP Code:
register_menucmd(register_menuid("Show_HudMenu")(1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9), "Handle_HudMenu");
iKeys |= (1<<1|1<<2|1<<3|1<<4);
and
should be declared as static
PHP Code:
static R,G,B,X,Y;
Code:
Warning: Function "ChooseTeam" should return a value on line 2096
Warning: Function "Show_HudMenu" should return a value on line 2631
Warning: Function "Show_HudMenu" should return a value on line 2636
Warning: Function "Show_HudMenu" should return a value on line 2641
Warning: Function "Show_HudMenu" should return a value on line 2658
just add a return value at the end of the function
Code:
Warning: Tag mismatch on line 641
Warning: Tag mismatch on line 642
Warning: Tag mismatch on line 649
Warning: Tag mismatch on line 651
Warning: Tag mismatch on line 653
Warning: Tag mismatch on line 687
Warning: Tag mismatch on line 689
Warning: Tag mismatch on line 691
Warning: Tag mismatch on line 695
Warning: Tag mismatch on line 695
Warning: Tag mismatch on line 695
Warning: Tag mismatch on line 695
Warning: Tag mismatch on line 1394
this error appears when you give a variable a different type of value than the purpose in which the variable was created
example
you have a boolean variabile but you store in that variabile a int number