Register System
#1

pawn Код:
public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, -1, "{FFFFFF}|______________{0DF014}Welcome to SA-MP TDM{FFFFFF}___________|");
    TextDrawShowForPlayer(playerid, Textdraw0);
    LoadBanStatus(playerid);
    ResetSettings(playerid);
    IsLogged[playerid]=0;
    TogglePlayerSpectating(playerid, 1);
    new file[128], string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(file,sizeof(file),"/mRegistration/Users/%s.txt",name);
    if(!fexist(file))
    {
        #if REGISTER_ON_CONNECT == true
THIS IS LINE 253!       ShowPlayerDialog(playerid, REG1-1, DIALOG_STYLE_MSGBOX, ""GREEN"DM World v1.0", ""GREEN"Welcome To SA-MP TDM"GREEN"", "Register", "Skip");
        #endif
    }
    if(fexist(file))
    {
        format(file,sizeof(file),"/mRegistration/Settings/%s.txt",name);
        INI_ParseFile(file, "PrompScV", false, true, playerid, true, false);
        PlayerInfo[playerid][PrompSc] = GetPVarInt(playerid,"PrompSc");
        INI_ParseFile(file, "LoadAutoLog", false, true, playerid, true, false);
        PlayerInfo[playerid][AutoLogin] = GetPVarInt(playerid,"AutoLog");
        if
        {
            format(string, sizeof string, ""WHITE"Your IP doesn't Match With Username: "RED"%s "WHITE"\nYou Can Login By Entering Your Password",name);
            ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, ""RED"Login Failed", string, "OK", "Cancel");
        }
    }
    return 1;
}
Getting error on line 253 all the time :S
Reply
#2

C:\Documents and Settings\Lindvall\Skrivbord\Stor map\Qk server\gamemodes\QKDM.pwn(255) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Lindvall\Skrivbord\Stor map\Qk server\gamemodes\QKDM.pwn(255) : warning 215: expression has no effect
C:\Documents and Settings\Lindvall\Skrivbord\Stor map\Qk server\gamemodes\QKDM.pwn(255) : error 001: expected token: ";", but found "-string-"
C:\Documents and Settings\Lindvall\Skrivbord\Stor map\Qk server\gamemodes\QKDM.pwn(255) : warning 215: expression has no effect
C:\Documents and Settings\Lindvall\Skrivbord\Stor map\Qk server\gamemodes\QKDM.pwn(255) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Lindvall\Skrivbord\Stor map\Qk server\gamemodes\QKDM.pwn(255) : 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 errors
Reply
#3

Showme the 255 line only.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)