26 errors please help
#8

No, there's a bracket to much :P

pawn Code:
public OnPlayerRequestSpawn(playerid)
{
    #if defined mustlogin
    if(logged[playerid] == 0)
    {
    new playerfile[100], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(playerfile, sizeof(playerfile), "/maxadmin/users/%s.ini",pname);
    #if defined autologin
    if(dini_Exists(playerfile))
    {
        new playerid;
        level[playerid]= dini_Int(playerfile, "level");
        logged[playerid] = 0;
        GivePlayerMoney(playerid, dini_Int(playerfile, "Cash"));
        SetPlayerScore(playerid, dini_Int(playerfile, "Score"));
        SpawnPlayer(playerid);
        return 1;
    }
    #endif
    if(dini_Exists(playerfile)) SendClientMessage(playerid, COLOR_GREEN, "This playername is registered! Please type /login to login or change your name");
    else SendClientMessage(playerid, COLOR_ORANGE, "This playername is not registered! Please type /register to create account");
    return 0;
    }
    #endif
    return 1;
}
Reply


Messages In This Thread
26 errors please help - by Kidemo - 06.12.2010, 06:42
Re: 26 errors please help - by Kidemo - 06.12.2010, 07:00
Re: 26 errors please help - by [UG]Scripter - 06.12.2010, 07:11
Re: 26 errors please help - by Kidemo - 06.12.2010, 15:29
Re: 26 errors please help - by Jochemd - 06.12.2010, 15:55
Re: 26 errors please help - by Kidemo - 06.12.2010, 16:15
Re: 26 errors please help - by SkizzoTrick - 06.12.2010, 16:26
Re: 26 errors please help - by Jochemd - 06.12.2010, 16:32
Re: 26 errors please help - by Ash. - 06.12.2010, 16:45
Re: 26 errors please help - by Kidemo - 06.12.2010, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)