SA-MP Forums Archive
INI error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: INI error (/showthread.php?tid=616707)



INI error - xAlecsu - 09.09.2016

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));


Re: INI error - JaKe Elite - 09.09.2016

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.


Re: INI error - xAlecsu - 09.09.2016

you can give me some link for download?...


Re: INI error - JaKe Elite - 09.09.2016

Download my admin system xDD... YSI is included on my admin system.


Re: INI error - xAlecsu - 09.09.2016

oke tnx