[Help] Error in code
#1

Код:
#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.
Line 35 Is :
Код:
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
Reply


Messages In This Thread
[Help] Error in code - by xVIP3Rx - 16.06.2013, 08:53
Re: [Help] Error in code - by Guest123 - 16.06.2013, 09:00
Re: [Help] Error in code - by IceBilizard - 16.06.2013, 09:03
Re: [Help] Error in code - by xVIP3Rx - 16.06.2013, 09:09
Re: [Help] Error in code - by xVIP3Rx - 16.06.2013, 10:17
Re: [Help] Error in code - by DeMoX - 16.06.2013, 10:21
Re: [Help] Error in code - by xVIP3Rx - 16.06.2013, 10:24
Re: [Help] Error in code - by DeMoX - 16.06.2013, 10:32
AW: [Help] Error in code - by Blackazur - 16.06.2013, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)