From 0483e491b31a9b9e9f351d11beb89384fd7b42de Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sat, 3 Apr 2004 19:16:26 +0000 Subject: [PATCH] read_data(0) returns msg id now --- amxmodx/amxmodx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 65d2a62d..8e1673ea 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -1264,6 +1264,10 @@ static cell AMX_NATIVE_CALL read_datanum(AMX *amx, cell *params) /* 0 param */ static cell AMX_NATIVE_CALL read_data(AMX *amx, cell *params) /* 3 param */ { + if (params[0] == 0) + { + return g_events.getCurrentMsgType(); + } switch( *params/sizeof(cell) ) { case 1: return g_events.getArgInteger( params[1] );