06.08.2019, 06:59
Quote:
Linux is, it will return error for table not found.
https://dev.mysql.com/doc/refman/8.0...nsitivity.html About users.sql 1) Set `Name` column as UNIQUE KEY. 2) Bcrypt returns 60 characters but you used VARCHAR(255). Length is fixed so better use CHAR(60) 3) Column `Level` is misleading. 4) When a value of column is always between a small range, use different type of integer (MEDIUMINT, SMALLINT, TINYINT) About Base.pwn 1) Standalone foreach is very outdated, YSI 5 and y_iterate. 2) Pass handle parameter in mysql_errno function because if a filterscript uses mysql and no duplicated connections, it will use handle 1 as default. 3) In OnPlayerConnect, you select all just to see if there are rows. Either COUNT() aggregate function or select password and id there and not in dialog response. 4) pawn Code:
5) pawn Code:
6) Be consistent about table and column names. Read my reply to GeorgeMcReary as a reference. 7) `MasterID` column is PRIMARY KEY, LIMIT keyword is obsolete. 8 ) Check against race condition. |
Quote:
Note that this constant is designed to change over time as new and stronger algorithms are added to PHP. For that reason, the length of the result from using this identifier can change over time. Therefore, it is recommended to store the result in a database column that can expand beyond 60 characters (255 characters would be a good choice). |
C) I used standalone foreach because I didnt want to include whole YSI just so I can use one function from it. When people start using this, they can update on their preference or can continue using standalone..
D) What do you mean by race condition?
Other changes have been done in gamemode and database. Files uploaded. Thanks..!