View Single Post
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-17-2023 , 09:55   Re: Killer Memes MOTD
Reply With Quote #6

Quote:
Originally Posted by mlibre View Post
pretty

Code:
set_task(CMD_MSG_DELAY, "Task__Message", TASK_ID, _, _, "b")
PHP Code:
set_task(CMD_MSG_DELAY"Task__Message"TASK_ID, .flags="b"
&
Code:
while(!feof(fop))
PHP Code:
while(fgets(fopszDatascharsmax(szDatas)) 
On set_task it is fine as it is. That’s not more efficient, maybe more readable, depending on who’s reading. That’s just a style, if you like it sure, but it’s pointless.

On file this is the proper way, feop is faster and cheaper. It compensates the null result you’ll get from fgets. Unless you have a really big file feop is the right choice. Anyway this is not a big deal, won’t have any impact.
__________________
Jhob94 is offline