SQL Error
SQL_Callback_SelectVipPlayers: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0, 60' at line 1
How VIP-Core version?
[VIP] Core 3.0 DEV #17
I deleted the old "vip_users" and "vip_overrides" because of that change "Теперь игроки хранятся в базе по AccountID." and I needed a new database. And I get that error when I try to list players.
- Set value 1 https://github.com/R1KO/VIP-Core/blob/new-style/addons/sourcemod/scripting/VIP_Core.sp#L11
- Compile
- Test and give me
VIP_Debug.log(inaddons/sourcemod/logs/)
L 10/30/2017 - 20:47:53: [vipsystem/VIP_Core.smx] SELECT o.group, o.expires, u.name, u.account_id, u.id FROM vip_users AS u LEFT JOIN vip_overrides AS o ON o.user_id = u.id WHERE o.server_id = 1 AND u.id = 2 LIMIT 1;
L 10/30/2017 - 20:47:53: [vipsystem/VIP_Core.smx] SetValue(Time) = 1509392824
L 10/30/2017 - 20:47:53: [vipsystem/VIP_Core.smx] GetValue(Time) = 1509392824
L 10/30/2017 - 20:48:05: [vipsystem/VIP_Core.smx] MenuHandler_VipClientInfoMenu->MenuCancel_ExitBack
L 10/30/2017 - 20:48:05: [vipsystem/VIP_Core.smx] GetValue(MenuListType) = 2
L 10/30/2017 - 20:48:06: [vipsystem/VIP_Core.smx] SELECT u.id, u.name FROM vip_users AS u LEFT JOIN vip_overrides AS o ON o.user_id = u.id WHERE o.server_id = 1LIMIT 0, 60;
Also: https://i.imgur.com/G68nns5.jpg
This is very bugged too. Name: 0, Group: My SteamID, Expires: The Vip group, Identifier: Expires in
Fix: Add space before LIMIT https://github.com/R1KO/VIP-Core/blob/new-style/addons/sourcemod/scripting/vip/adminmenu/List.sp#L219
About the fact that instead of nickname the symbol 0 I know. If you do not mind creating a new issue with this problem
From:
LIMIT %d, %d;",
To:
LIMIT %d, %d;",
?
Or add space like the word space.
yes
LIMIT %d, %d; -> LIMIT %d, %d;
Those spaceings here are so bugged ffs... So I need to do that:
https://i.imgur.com/6UQ7bBv.gif
Or I got you wrong
yes
Well, I still get:
L 10/31/2017 - 00:30:38: [vipsystem/VIP_Core.smx] SQL_Callback_SelectVipPlayers: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0, 60' at line 1
Test this version http://joxi.ru/V2VvvxdU0WM7j2
https://i.imgur.com/J3hY3hX.jpg
I guess those zeroes are from the other problem. Also - can I have the plugins with Выход changed to Exit? I used to change it myself from the Info.sp, but I don't have it now.
I'll fix it now
https://github.com/R1KO/VIP-Core/commit/8652ccdc2317e4fb3847e27e70c41c8628699da8 And https://github.com/R1KO/VIP-Core/commit/272ccb5128a22843201e96a616bb5c31b09d8b8c
@SSadistic
Test this http://joxi.ru/bmobbD0CM0kJPr and me full VIP_Debug.log
Try adding a VIP player.
https://pastebin.com/7da48rBA
in the database and menu the normal name?
I can't access the DB now, but the VIP is added as it should be. Still zeroes in listing players.
In which case does the name change to 0?