INI error
#1

Hello ,how can i fix this error?

Код:
C:\Users\Alex\Desktop\v sa-\gamemodes\bare.pwn(1571) : error 017: undefined symbol "INI_DeleteTag"


Full code is:
Код:
	if( CheckFlag( g_PlayerFlag[ playerid ], PLAYER_HAS_CELLPHONE ))
	{
		fremove( PhoneBookPath( playerid ));
		new INI:File = INI_Open( PhoneBookPath( playerid ));                                                                                                
		INI_SetTag( File, "statistics" );
        INI_WriteInt( File, "contacts", g_Contacts[ playerid ] );

		for( new i = 0; i < g_Contacts[ playerid ]; i ++ )
		{
		if( !strcmp( g_PhoneBook[ playerid ][ i ][ pbName ], "- empty -" ))
		{
  			INI_DeleteTag( File, valstr2( i ));
		}
		else
		{
			INI_SetTag( File, valstr2( i ));
   			INI_WriteString( File, "name", g_PhoneBook[ playerid ][ i ][ pbName ] );
   			INI_WriteString( File, "number", g_PhoneBook[ playerid ][ i ][ pbNumber ] );
      	}
	}
		INI_Close( File );

		File = INI_Open( PHONE_NUMBERS_PATH );
 		INI_SetTag( File, "data" );
 		INI_WriteString( File, g_PlayerPhone[ playerid ], PlayerName( playerid ));
 		INI_Close( File );

		g_Contacts[ playerid ] = 0;

		for( new i = 0; i < MAX_CONTACTS; i ++ )
 		{
 			format( g_PhoneBook[ playerid ][ i ][ pbName ], MAX_PLAYER_NAME, "" );
 			format( g_PhoneBook[ playerid ][ i ][ pbNumber ], PHONE_NUMBER_LENGTH, "" );
 		}
	}
Line 1571 is:
Код:
		if( !strcmp( g_PhoneBook[ playerid ][ i ][ pbName ], "- empty -" ))
		{
  			INI_DeleteTag( File, valstr2( i ));
		}
1571: INI_DeleteTag(File,valstr(i));
Reply
#2

Are you using the latest version (last version to be released by ******) of y_ini? If so, Update your y_ini.

I have checked my YSI version and somehow INI_DeleteTag existed on y_ini.
Reply
#3

you can give me some link for download?...
Reply
#4

Download my admin system xDD... YSI is included on my admin system.
Reply
#5

oke tnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)