From 3270eda941fb7213589e29f8dd8ae59b781bc323 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 11 Jun 2022 23:24:33 +0200 Subject: [PATCH] changed length of the cheat param cell to get entire message --- oryx-mini-edit/scripting/oryx.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oryx-mini-edit/scripting/oryx.sp b/oryx-mini-edit/scripting/oryx.sp index cb8e5d81..2ad841b7 100644 --- a/oryx-mini-edit/scripting/oryx.sp +++ b/oryx-mini-edit/scripting/oryx.sp @@ -260,15 +260,15 @@ public int Native_OryxTrigger(Handle plugin, int numParams) int level = GetNativeCell(2); 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; Call_StartForward(gH_Forwards_OnTrigger); Call_PushCell(client); 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); if(result == Plugin_Stop)