fputs: Error: Number of arguments does not match definition on line 257
PHP Code:
get_localinfo( "amxx_configsdir", iConfigDir, charsmax( iConfigDir ) )
format(iFile, 127, "configs/songlist.ini")
if( !file_exists( iFile ) )
{
new FileP = fopen( iFile, "+a" )
fputs( FileP, "; %s Songs^n", g_szPlugin )
fputs( FileP, "; Format: ^"Song Name^" ^"Song Url/Link^"^n" )
fputs( FileP, "; eg. ^"Eminem - Mockingbird^" ^"http://www.youtube.com/watch?v=S9bCLPwzSC0^n^"" )
fclose( FileP )
server_print( "%L", iFile, "FILE_ADDED" )
}
Array:
Error: Undefined symbol "MaxSongs" on line 24
Error: Undefined symbol "MaxSongs" on line 25
Error: Undefined symbol "x" on line 45
Warning: Tag mismatch on line 281
PHP Code:
if( SongCount > MaxSongs ) // warning
break;
PHP Code:
plugin_init: MaxSongs = ArrayCreate( x );
New: new g_Song_Names[ MaxSongs ][ 64 ];
new g_Song_Links[ MaxSongs ][ 512 ];
new Array:MaxSongs;
What's the problem up there?
__________________