Posts: 386
Threads: 109
Joined: Oct 2010
Reputation:
0
Hello, i was wondering how i could join 2 different scripts together.
For example:
OnPlayerStateChange(blahdy blahdy blah)
{
Nos script
Private vehicle script
return 1;
}
Please help me, its desperately needed.
Posts: 386
Threads: 109
Joined: Oct 2010
Reputation:
0
sorry mate but u cant put two of the same thing in a script, u cant put OnPlayerStateChange twice?
Posts: 386
Threads: 109
Joined: Oct 2010
Reputation:
0
error 021: symbol already defined: "OnPlayerStateChange"
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
You can't put OnPlayerStateChange twice, no.
You merge it's contents together.
Posts: 386
Threads: 109
Joined: Oct 2010
Reputation:
0
can u give me an example please?
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Both scripts contains stuff inside OnPlayerStateChange (example)
And if you want both in same script, you just easily put the contents of BOTH scripts into the OnPlayerStateChange callback in the script you want both in.
Posts: 386
Threads: 109
Joined: Oct 2010
Reputation:
0
yeh but how, it is not working for ME!?