30.12.2012, 16:57
Sup i got error how to fix it?!
ERROR:
The Code!:
ERROR:
Код:
F:\Login and Register Sytem Y_INI\Login and Register Sytem Y_INI\gamemodes\Twst2.pwn(5) : fatal error 100: cannot read from file: "gl_common" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
#include <a_samp> #include <YSI\y_ini> #include <gl_common> // Line 5 #define DIALOG_REGISTER 1 #define DIALOG_LOGIN 2 #define DIALOG_SUCCESS_1 3 #define DIALOG_SUCCESS_2 4 #define SCRIPT_MODE "CTDM" #define SCRIPT_WEB "www.CokeTDM.com" #define SCRIPT_MAP "Los Santos" #define SCRIPT_UPDATE "18/3/1998" #define PATH "/Users/%s.ini" #define COL_WHITE "{FFFFFF}" #define COL_RED "{F81414}" #define COL_GREEN "{00FF22}" #define COL_LIGHTBLUE "{00CED1}" #define GoldColor "{00CED1}" #define Random "{00CED1}" "{00CED12}" "{00CED5}" enum pInfo { Password, AdmLevel, Donator, Level, Money, Score, Kills, Deaths, Sucide, KDR, vTicket, vKey, vLock, vColor, vColor2, vPosX, VPosY, vPosZ } new PlayerInfo[MAX_PLAYERS][pInfo]; forward LoadUser_data(playerid,name[],value[]); public LoadUser_data(playerid,name[],value[]) { INI_Int("Password",PlayerInfo[playerid][Password]); INI_Int("AdmLevel",PlayerInfo[playerid][AdmLevel]); INI_Int("Donator",PlayerInfo[playerid][Donator]); INI_Int("Level",PlayerInfo[playerid][Level]); INI_Int("Money",PlayerInfo[playerid][Money]); INI_Int("Score",PlayerInfo[playerid][Score]); INI_Int("Kills",PlayerInfo[playerid][Kills]); INI_Int("Deaths",PlayerInfo[playerid][Deaths]); INI_Int("Sucide",PlayerInfo[playerid][Sucide]); INI_Int("KDR",PlayerInfo[playerid][KDR]); INI_Int("vTicket",PlayerInfo[playerid][vTicket]); INI_Int("vKey",PlayerInfo[playerid][vKey]); INI_Int("vLock",PlayerInfo[playerid][vLock]); INI_Int("vColor",PlayerInfo[playerid][vColor]); INI_Int("vColor2",PlayerInfo[playerid][vColor2]); INI_Int("vPosX",PlayerInfo[playerid][vPosX]); // INI_Int("vPosY",PlayerInfo[playerid][vPosY]); INI_Int("vPosZ",PlayerInfo[playerid][vPosZ]); return 1; } stock UserPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),PATH,playername); return string; } main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit"); } return 1; } public OnGameModeInit() { total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt"); return 1; } public OnGameModeExit() { return 1; }