/admins problem...
#2

dini_Int keeps opening the file to read the value. Do you realize if a player is owner, it will open their file 8 times just for that player? Now count the rest of the players they are online and think how slow and bad way it is.

Admin status is something that needs to be stored in a global array. A switch or an constant array for the description/title is better than multiple else if statements.

Why do you check if the player who typed the command is connected? That was a very, very, very old exploit which has been fixed over 10 years ago.

A dialog can show approximately 4300 characters, 10000 is overkill.

The unknown command is given because of the run time error 10: "Native function failed" and the function that fails is `strins`. There is `strcat` function if you want to concatenate two strings together.
Reply


Messages In This Thread
/admins problem... - by TaligaroW - 30.09.2018, 10:06
Re: /admins problem... - by Calisthenics - 30.09.2018, 10:19
Re: /admins problem... - by ReD_HunTeR - 30.09.2018, 10:20
Re: /admins problem... - by CodeStyle175 - 30.09.2018, 10:58
Re: /admins problem... - by GhostHacker9 - 30.09.2018, 11:20
Re: /admins problem... - by TaligaroW - 30.09.2018, 20:25
Re: /admins problem... - by DarkBr - 01.10.2018, 00:47
Re: /admins problem... - by TheToretto - 01.10.2018, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)