[Include] y_svar - Save and load data with no effort at all!
#17

OK it seems that you need a folder YSI in scriptfiles (always a good idea to reed the server log ). And my custom testing code worked.
Code:
#define MODE_NAME   "SVarTest"
#include <a_samp>
#include <YSI\y_svar>
#include <YSI\y_timers>

svar Skuska[1];

timer Random[2000]()
{
	print("========================================");
    printf("Data: %d",Skuska[0]);
	if(Skuska[0] == 0) Skuska[0] = random(999) + 1;
	printf("Data2: %d",Skuska[0]);
}

public OnGameModeInit()
{
    defer Random();
	return 1;
}
But my filterscript is not working. I am using enum in it.
Code:
#include <a_samp>
#include <exis>
#include <h_colors>

#define FILTERSCRIPT
#define MODE_NAME "Sheeld"
#include <YSI\y_svar>
#include <YSI\y_iterate>
...
enum SERVER_INFO
{
	DialogShift,
	BanSystem,
	KickS,
	Setup,
	Mode,
	Dni,
	Hodin,
	Minut
}

svar Server[SERVER_INFO];
But it had at least created the file inn scriptfiles

EDIT: I tried both unloading the FS as rcon and using exit in console.
EDIT2: Ok i have probably messed up the dialogs
Reply


Messages In This Thread
y_svar - Save and load data with no effort at all! - by Y_Less - 18.02.2013, 00:37
Re: y_svar - Save and load data with no effort at all! - by RealCop228 - 18.02.2013, 00:44
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 18.02.2013, 00:50
Re: y_svar - Save and load data with no effort at all! - by RealCop228 - 18.02.2013, 01:19
Re: y_svar - Save and load data with no effort at all! - by zDevon - 18.02.2013, 01:28
Re: y_svar - Save and load data with no effort at all! - by E_Meec - 19.02.2013, 14:52
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 19.02.2013, 14:57
Re: y_svar - Save and load data with no effort at all! - by E_Meec - 19.02.2013, 15:27
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 26.02.2013, 02:24
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 26.02.2013, 19:12
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 26.02.2013, 19:29
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 26.02.2013, 22:00
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 26.02.2013, 23:15
Re: y_svar - Save and load data with no effort at all! - by new121 - 27.02.2013, 08:03
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 27.02.2013, 09:53
Re: y_svar - Save and load data with no effort at all! - by new121 - 27.02.2013, 10:19
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 27.02.2013, 14:36
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 27.02.2013, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)