mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
0.2 file not found -> exits
This commit is contained in:
parent
27e4174be6
commit
e097932ac9
@ -111,13 +111,8 @@ bool LoadRankFromFile(HWND hDlg) {
|
|||||||
if ( !g_rank.begin() )
|
if ( !g_rank.begin() )
|
||||||
{
|
{
|
||||||
if (!g_rank.loadRank(STATS_FILENAME)) {
|
if (!g_rank.loadRank(STATS_FILENAME)) {
|
||||||
HWND listbox = GetDlgItem(hDlg, IDC_LIST);
|
MessageBox(hDlg, "File load failed! Make sure you have csstats.dat in the same directory as this executable. Exiting...", "Where IS that file of yours?", MB_OK);
|
||||||
SendMessage( // returns LRESULT in lResult
|
PostQuitMessage(0);
|
||||||
listbox, // handle to destination control
|
|
||||||
LB_ADDSTRING, // message ID
|
|
||||||
0, // = (WPARAM) () wParam;
|
|
||||||
(LPARAM) "File load failed!" // = (LPARAM) () lParam;
|
|
||||||
);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user