[GameMode] Very Basic Script
#24

Quote:
Originally Posted by GeorgeMcReary
View Post
MySQL is not case sensitive lmao.. USERS and users and uSeRs are considered same.
Linux is, it will return error for table not found.

https://dev.mysql.com/doc/refman/8.0...nsitivity.html

Quote:
Originally Posted by GTLS
View Post
I over looked some details but I have fixed them now. Thank you guys for the appreciation and criticism. Criticism makes someone always better.
Quote:
Originally Posted by GTLS
View Post
No harm done. I always accept criticism, and take it positively.
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:
mysql_tquery(handle, query, "OnPlayerLogin", "ds", playerid, inputtext);
If log level is set as ALL, it will log password as plain text in mysql.log file.
5)
pawn Code:
"SELECT password, Master_ID from `USERS` WHERE Name LIKE '%s'"
Remove LIKE keyword.
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.
Reply


Messages In This Thread
Very Basic Script - by GTLS - 23.07.2019, 16:55
Re: Very Basic Script - by N4Sti - 23.07.2019, 17:22
Re: Very Basic Script - by ZigGamerx - 23.07.2019, 17:26
Re: Very Basic Script - by NeXTGoD - 23.07.2019, 18:04
Re: Very Basic Script - by GTLS - 24.07.2019, 04:06
Re: Very Basic Script - by ZigGamerx - 24.07.2019, 09:18
Re: Very Basic Script - by GTLS - 24.07.2019, 10:04
Re: Very Basic Script - by GeorgeMcReary - 24.07.2019, 10:20
Re: Very Basic Script - by Mobtiesgangsa - 24.07.2019, 19:59
Re: Very Basic Script - by Kane - 24.07.2019, 21:18
Re: Very Basic Script - by kukboy - 24.07.2019, 21:48
Re: Very Basic Script - by Josh_Main - 25.07.2019, 08:59
Re: Very Basic Script - by GTLS - 25.07.2019, 09:23
Re: Very Basic Script - by Huemerson - 25.07.2019, 12:49
Re: Very Basic Script - by sonn51280 - 25.07.2019, 13:10
Re: Very Basic Script - by ZigGamerx - 25.07.2019, 14:02
Re: Very Basic Script - by GTLS - 27.07.2019, 09:23
Re: Very Basic Script - by PhantomThief1412 - 04.08.2019, 14:36
Re: Very Basic Script - by ZigGamerx - 04.08.2019, 18:39
Re: Very Basic Script - by SiaReyes - 05.08.2019, 13:20
Re: Very Basic Script - by GeorgeMcReary - 05.08.2019, 16:09
Re: Very Basic Script - by GTLS - 05.08.2019, 16:27
Re: Very Basic Script - by SiaReyes - 05.08.2019, 16:35
Re: Very Basic Script - by Calisthenics - 05.08.2019, 17:16
Re: Very Basic Script - by GTLS - 06.08.2019, 06:59
Re: Very Basic Script - by Calisthenics - 06.08.2019, 08:04
Re: Very Basic Script - by GTLS - 06.08.2019, 08:58
Re: Very Basic Script - by Calisthenics - 06.08.2019, 11:59
Re: Very Basic Script - by GTLS - 07.08.2019, 16:47
Re: Very Basic Script - by Mugala - 08.08.2019, 23:21

Forum Jump:


Users browsing this thread: 2 Guest(s)