SA-MP Forums Archive
strings, 2 different scripts. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: strings, 2 different scripts. (/showthread.php?tid=367230)



strings, 2 different scripts. - denNorske - 09.08.2012

hello!

how can I include functions and strings from another filterscript into a new one?
is that possible?

because I want to disable boost f.ex when I am in a race, But the variables and strings from the race are not in the same filterscript as the boost, so how can I disable?
lol, hard to explain.


Thanks!


Re: strings, 2 different scripts. - Socan - 09.08.2012

I suggest just adding it all into one script and go by there..


Re: strings, 2 different scripts. - denNorske - 09.08.2012

good idea, But it's like 20 900 lines to move and include in one single script. to much.


Re: strings, 2 different scripts. - leonardo1434 - 09.08.2012

By using setpvar's.

https://sampwiki.blast.hk/wiki/SetPVarString


Re: strings, 2 different scripts. - denNorske - 09.08.2012

Thanks a lot, so now I can get string values into another script? awesome, Thanks a lot!


Re: strings, 2 different scripts. - Socan - 09.08.2012

Yeah add me on skype dude, jim_mcb_99


Re: strings, 2 different scripts. - denNorske - 09.08.2012

I'll do when I get home, Thanks.

so when I use pvars it will be possible to use the same variable in all the scripts I want, with the same results?


Re: strings, 2 different scripts. - denNorske - 09.08.2012

bump. u know, I am inpatient, sorry.


Re: strings, 2 different scripts. - leonardo1434 - 09.08.2012

Yes,But there's a limit for pvar's, it's around 800.

a little thing, before ask some stuff like this, you should test yourself and learn with it, instead of ask for one thing that is explained at samp wiki.


Re: strings, 2 different scripts. - denNorske - 09.08.2012

Okay, Thanks alot, maybe I should do so