Post: Sprx coding help
06-14-2018, 10:04 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); 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 10:07 PM.
06-15-2018, 07:52 AM #2
anthonything
Space Ninja
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.

The following user thanked anthonything for this useful post:

S63
06-15-2018, 08:43 PM #3
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
06-20-2018, 03:28 AM #4
mod please close this thread I have figured this out

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo