27.02.2013, 14:36
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.
But my filterscript is not working. I am using enum in it.
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
). 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;
}
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];
EDIT: I tried both unloading the FS as rcon and using exit in console.
EDIT2: Ok i have probably messed up the dialogs

