Jump to content

How can I display a help message?


M8T
 Share

Recommended Posts

I have been trying to make a help message in rdr2 appear for days now but no matter what I do it just keeps crashing. Here is my code in c# by the way.

argasd1.p0 = duration;
            argasd1.p1 = 0;
            argasd1.p2 = 0;
            argasd1.p3 = 0;
            
           
            argasd2.p0 = 0;
            argasd2.p1 = Function.Call<string>(Hash._CREATE_VAR_STRING, 10, "LITERAL_STRING", message);
       
            Function.Call<string>(Hash._0x049D5C615BD38BAD, argasd1.p0, argasd2.p1, 1);

Does anyone know what I am doing wrong?

Link to comment
Share on other sites

Try changing the return type of your call to CREATE_VAR_STRING to long instead of string. Also pass the actual structures as parameters, not values from the structures).

Link to comment
Share on other sites

9 hours ago, LMS said:

Try changing the return type of your call to CREATE_VAR_STRING to long instead of string. Also pass the actual structures as parameters, not values from the structures).

Ok, I changed the return type to long, but what do you mean by "pass the actual structures as parameters, not values from the structures)."? Could you provide an example?

Link to comment
Share on other sites

12 hours ago, LMS said:

Try changing the return type of your call to CREATE_VAR_STRING to long instead of string. Also pass the actual structures as parameters, not values from the structures).

Passing the stucts as params gives me an error

Link to comment
Share on other sites

Try passing them as a pointer (using &) or casting to long instead. Your problem is that you are passing individual values from the structure, not the structure itself.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...