Reading EVERYTHING from a file
#4

pawn Code:
new File: fhandler = fopen( "nyancat.languages", io_read );
new string[ 128 ]; // string which will be stored while reading
while ( fread( fhandler, string ) )
{
    if ( !strcmp( string, "English", true ) ) NyanForAllPlayers( LANG_ENGLISH );
    else if ( !strcmp( string, "Japanese", true ) ) NyanForAllPlayers( LANG_JAPAN );
}
Well hope it can help you.
Reply


Messages In This Thread
Reading EVERYTHING from a file - by Wesley221 - 10.09.2011, 13:59
Re: Reading EVERYTHING from a file - by Darnell - 10.09.2011, 14:12
Re: Reading EVERYTHING from a file - by Wesley221 - 10.09.2011, 14:16
Re: Reading EVERYTHING from a file - by Basicz - 10.09.2011, 14:18
Re: Reading EVERYTHING from a file - by Wesley221 - 10.09.2011, 14:21
Re: Reading EVERYTHING from a file - by Wesley221 - 10.09.2011, 16:36
Respuesta: Re: Reading EVERYTHING from a file - by OPremium - 10.09.2011, 17:39
Re: Reading EVERYTHING from a file - by Wesley221 - 10.09.2011, 17:44
Re: Reading EVERYTHING from a file - by [M]onsieur - 10.09.2011, 18:00
Re: Reading EVERYTHING from a file - by Sasino97 - 10.09.2011, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)