View Single Post
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-18-2019 , 10:37   Re: Read from a file
Reply With Quote #9

Quote:
Originally Posted by Bugsy View Post
I don't think your client_infochanged() code is needed for his purposes. For your ban plugin where you want to hook name change, may want to consider switching to this.

I think add() or copy() is ideal, format()/formatex() should be avoided if you are not truly formatting.
Code:
new szConfig[ MAX_FMT_LENGTH ] , iConfigDirLen;
iConfigDirLen = get_configsdir(szConfig, charsmax( szConfig) );
copy( szConfig[ iConfigDirLen ] , charsmax( szConfig ) - iConfigDirLen , "/newban.ini" );
I completely agree, I just wrote the plugin so that it understands the mechanics of reading / writing to the ban file, I don't use this bans system and wouldn't use it by name.

Now regarding copy / add I totally agree with you.

Regarding the client_infochanged issue I had a problem executing that function, in which the names of the players were being changed "automatically", by names of other players that had already left the server.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr