changed length of the cheat param cell to get entire message

This commit is contained in:
jenz 2022-06-11 23:24:33 +02:00
parent 2c5820dd3d
commit 3270eda941

View File

@ -260,15 +260,15 @@ public int Native_OryxTrigger(Handle plugin, int numParams)
int level = GetNativeCell(2); int level = GetNativeCell(2);
char[] sLevel = new char[16]; char[] sLevel = new char[16];
char[] sCheatDescription = new char[32]; char[] sCheatDescription = new char[1024];
GetNativeString(3, sCheatDescription, 32); GetNativeString(3, sCheatDescription, 1024);
Action result = Plugin_Continue; Action result = Plugin_Continue;
Call_StartForward(gH_Forwards_OnTrigger); Call_StartForward(gH_Forwards_OnTrigger);
Call_PushCell(client); Call_PushCell(client);
Call_PushCellRef(level); Call_PushCellRef(level);
Call_PushStringEx(sCheatDescription, 32, SM_PARAM_STRING_COPY, SM_PARAM_COPYBACK); Call_PushStringEx(sCheatDescription, 1024, SM_PARAM_STRING_COPY, SM_PARAM_COPYBACK);
Call_Finish(result); Call_Finish(result);
if(result == Plugin_Stop) if(result == Plugin_Stop)