14.11.2009, 22:16
Hi,
thx for your answer :P
so if the file is big, we need a huge string to store the data? maybe something like an array 1024 wide?
The IsNameBanned function changes to :
or the first one is better?
and, nice plugin
thx for your answer :P
so if the file is big, we need a huge string to store the data? maybe something like an array 1024 wide?
The IsNameBanned function changes to :
Code:
IsNameBanned(name[]) { new string[1024];//it's the whole file, might be very long... if(file_read("samp.ban", string)) { if(strfind(string, name, true) != -1) { return 1; } } return 0; }
and, nice plugin