Sprx coding help - NextGenUpdate
THREAD: Sprx coding help
  1. 06-14-2018, 06:04 PM
    #1
    autodark's Avatar
    autodark
    Haxor!
    autodark's Avatar
    autodark
    Haxor!
    29
    Posts
    10
    Reputation
    Oct 2015
    NextGenUpdate
    Sponsored Links

    I am need help with my sprx if anyone can help me out

    addOption("Red Name");
    strcpy((char*)0x00000000,"^1");//red

    i was wondering if it would work like this?
    Last edited by autodark; 06-14-2018 at 06:07 PM.

  2. Sponsored Links
  3. 06-15-2018, 03:52 AM
    #2
    812
    Posts
    9,045
    Reputation
    Nov 2012
    NextGenUpdate
    Originally Posted by autodark View Post
    I am need help with my sprx if anyone can help me out

    addOption("Red Name");
    strcpy((char*)0x00000000,"^1");//red

    i was wondering if it would work like this?
    You seem to be copying to a null pointer, so, no it wont work (unless thats just an example value).
    Also, we dont have access to AddOption in your menu, so we cant tell you if the arguments are set up correctly or not, although i would assume that since you only have the item name that it most likely is not correct.
    Theres also quite a bit wrong with the logic there as well, so to answer your question, No. It would not work like that.

    Also, if you are looking for SPRX help you should post in the Mods Cheats and Guides section since the GSC Section is for GSC Scripting.
  4. 06-15-2018, 04:43 PM
    #3
    autodark's Avatar
    autodark
    Haxor!
    autodark's Avatar
    autodark
    Haxor!
    29
    Posts
    10
    Reputation
    Oct 2015
    NextGenUpdate
    I understand that no its just a example lol but there is a way to do it with snprint and i dont know how to do that

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •