Fixed a message bug

This commit is contained in:
David Anderson 2004-08-24 05:07:14 +00:00
parent 84771f11a7
commit 7cbe114cf0

View File

@ -301,7 +301,7 @@ static cell AMX_NATIVE_CALL register_message(AMX *amx, cell *params)
{ {
int len; int len;
if (params[1]>0 && params[1] < 256) { if (params[1]>0 && params[1] < 256) {
int id = MF_RegisterSPForwardByName(amx, MF_GetAmxString(amx, params[2], 0, &len), FP_CELL, FP_CELL, FP_CELL, FP_DONE); int id = MF_RegisterSPForwardByName(amx, MF_GetAmxString(amx, params[2], 0, &len), FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
// MF_Log("Registering message %d with result %d", params[1], id); // MF_Log("Registering message %d with result %d", params[1], id);
msgHooks[params[1]] = id; msgHooks[params[1]] = id;
return id; return id;