I need an inspiring idea. - 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: I need an inspiring idea. (
/showthread.php?tid=296967)
I need an inspiring idea. -
yanir3 - 13.11.2011
Well, after a couple of mind-blowing thoughts, I made a decision I want to seperate my script into '.pwn' scripts, and include them in one script.
Something like this, in my main script:
PHP код:
#include "Script/HouseSystem.pwn"
#include "Script/AdminCommands.pwn"
So my script works with dini, and it saves all variables from dini into player variables, e.g. Info[playerid][Level].
I was wondering, how can I work with different files, when all of the player data is in a variable, I don't want to edit the user-file using dini all the time, I assume it will cause lag, any ideas?
NOTE: I will not work with mySQL, it wouldn't work, too many issues.
Re: I need an inspiring idea. -
MadeMan - 13.11.2011
Include the script that defines the player variables first and then all the others?
Re: I need an inspiring idea. -
Norn - 13.11.2011
Quote:
Originally Posted by yanir3
Well, after a couple of mind-blowing thoughts, I made a decision I want to seperate my script into '.pwn' scripts, and include them in one script.
Something like this, in my main script:
PHP код:
#include "Script/HouseSystem.pwn"
#include "Script/AdminCommands.pwn"
So my script works with dini, and it saves all variables from dini into player variables, e.g. Info[playerid][Level].
I was wondering, how can I work with different files, when all of the player data is in a variable, I don't want to edit the user-file using dini all the time, I assume it will cause lag, any ideas?
NOTE: I will not work with mySQL, it wouldn't work, too many issues.
|
Use pvars.
Re: I need an inspiring idea. -
yanir3 - 14.11.2011
Quote:
Originally Posted by Norn
Use pvars.
|
I thought about it, well, I'll try.