16.06.2013, 08:53
Код:
#include <a_samp> #include <sscanf2> #include <SII> #include <zcmd> #define WHITE 0xFFFFFFAA #define RED 0xFF0000AA #define GREEN 0x00FF00AA #define DIALOG_REGISTER 2000 #define DIALOG_LOGIN 2001 enum PlayerInfo { Logged,//To check if the player is logged in Admin,//To check the player's admin level Pass, Score, Cash, } new PInfo[MAX_PLAYERS][PlayerInfo]; new gPlayerName[MAX_PLAYERS][MAX_PLAYER_NAME]; stock getINI(playerid) { new account[64]; format(account,30,"Users/%s.ini",gPlayerName[playerid]); return account; } public OnPlayerConnect(playerid) { GetPlayerName(playerid, gPlayerName[playerid], MAX_PLAYER_NAME); if (fexist(getINI(playerid))) { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""WHITE"Registering...",""WHITE"Type your password below to register a new account.","Register","Quit"); } return 1; }
Код:
D:\Games\Server\filterscripts\LoginSystem.pwn(35) : error 001: expected token: "-string end-", but found "-identifier-" D:\Games\Server\filterscripts\LoginSystem.pwn(35) : warning 215: expression has no effect D:\Games\Server\filterscripts\LoginSystem.pwn(35) : error 001: expected token: ";", but found "-string-" D:\Games\Server\filterscripts\LoginSystem.pwn(35) : warning 215: expression has no effect D:\Games\Server\filterscripts\LoginSystem.pwn(35) : error 001: expected token: "-string end-", but found "-identifier-" D:\Games\Server\filterscripts\LoginSystem.pwn(35) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");