I need an inspiring idea.
#1

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.
Reply
#2

Include the script that defines the player variables first and then all the others?
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by Norn
Посмотреть сообщение
Use pvars.
I thought about it, well, I'll try.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)