Help .. Get Crash.
#1

Hello..

i want to install this script to my server,then put in server.cfg at filterscript line.. the problem is..when i want to enter my server,then i get crash..

this is the script
Код:
#define MODE_NAME "y_uvar_test" // Required.

#include <YSI\y_users> // You can use your own user system, but will need to configure it.
#include <YSI\y_uvar> // This includes the magic keyword.
#define FILTERSCRIPT
#include <foreach>

enum E_PLAYER_DATA
{
    Float:PD_HEALTH,
    PD_AMMO,
    PD_WEAPON
}

uvar gPlayerData[MAX_PLAYERS][E_PLAYER_DATA];

CMD:weapon(playerid, params[])
{
    GivePlayerWeapon(playerid, 24, 400);
    gPlayerData[playerid][PD_WEAPON] = 24;
    gPlayerData[playerid][PD_AMMO] = 400;
}

public OnPlayerSpawn(playerid)
{
    GivePlayerWeapon(playerid, gPlayerData[playerid][PD_WEAPON], gPlayerData[playerid][PD_AMMO]);
}
this in server log
Код:
[17:40:08]   Loading filterscript 'save.amx'...
[17:40:08]  
[17:40:08]  ======================================= 
[17:40:08]  |                                     | 
[17:40:08]  |        YSI version 1.00.0001        | 
[17:40:08]  |        By Alex "******" Cole        | 
[17:40:08]  |                                     | 
[17:40:08]  ======================================= 
[17:40:08]  
[17:40:08] 
[17:40:08] *** YSI Error: YSI/users/index.YSI does not exist and couldn't be created.
[17:40:08] *** YSI Error: Could not upgrade user files.
[17:40:08] *** YSI Error: No languages found - Did you add "Langs_AddLanguage" to the script init (NOT "main")?
[17:40:08] Hash stage 0: 66
[17:40:08] Hash stage 1: 2289
[17:40:08] Hash stage 2: 75651
[17:40:08] Hash stage 3: 2496584
[17:40:08] Hash stage 4: 82387330
[17:40:08] Hash stage 5: -1576185285
[17:40:08] Hash stage 6: -474506738
[17:40:08] Hash stage 7: 1521146935
[17:40:08] Hash stage 8: -1341758602
[17:40:08] Hash stage 9: -1328360794
[17:40:08] Hash stage 10: -886233134
[17:40:08] Hash stage 11: 819077747
[17:40:08] Hash stage 12: 1259761996
[17:40:08] Hash stage 13: -1377526991
[17:40:08] Hash stage 14: 1786249667
[17:40:08] Hash stage 15: -1183303018
Thank You..
Reply
#2

Did you add "Langs_AddLanguage" to the script init (NOT "main") ??

The error is even written in your server-console, read it, you probably forgot that! ^
Reply
#3

then how to fix ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)