hi, i want to make each case be not "text" but param with text which is loaded from a line of file, so 1st param will be 1st line, 2nd = 2nd etc
for this code (i want to try if this gonna help me make plugin work with UTF-8 characters cuz compiler won't let me compile anything with UTF-8 non-english characters so i wan't to try put em outside the plugin
PHP Code:
switch (said[i])
{
case 'z': a = 1
case 'x': a = 2
case 'c': a = 3
case 'v': a = 4
case 'b': a = 5
case 'n': a = 6
case 'm': a = 7
}
here is how it should load a file i think but i need to make it into lines and 7 params
PHP Code:
add( filename, "/lol.ini" );
}
public Function()
{
if( file_exists(filename) )
{
new dataread[250];
new fs = fopen( filename );
while( !feof(fs) ) // Keep looping untill the end of the file.
{
fgets( fs, dataread, sizeof dataread - 1 );
// Now dataread contains what's in the lol.ini
(untill next line).
client_print( 0, print_chat, "Test: %s", dataread );
// Shows the info we got from the file to all players.
}
fclose( fs ); // We must close the file after we opened it.
}
}
so lol.ini will be
__________________