read_data(0) returns msg id now
This commit is contained in:
parent
7d13e8cd01
commit
0483e491b3
@ -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] );
|
||||
|
Loading…
Reference in New Issue
Block a user