Linking Scripts

Status
Not open for further replies.

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
So I have a script with multiple ideas but to be neater, i wish to make 2 .cs files that could link to a common dialog. For example in 1.cs i have /servercmd (example) and if it will choose the 2nd item it will activate 2.cs continuing with the script from the 2nd .cs file. Is that possible?
 

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
possible just requires some thought
So i'd work if in 1.cs I would create a dialog with a list of items. If one of them is pressed, it will say a command which will be created in 2.cs. That should work right? I'm trying it now. Thank you so much.
 

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
So i'd work if in 1.cs I would create a dialog with a list of items. If one of them is pressed, it will say a command which will be created in 2.cs. That should work right? I'm trying it now. Thank you so much.
Well... that didn't work... It says the command doesn't exist.. do you have any idea how I could do it?
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
103
Don't use seperate .cs files for this. Use sampfuncs "custom thread" and "global vars" opcode search should be pretty self explanatory.
 
Status
Not open for further replies.
Top