Five errors
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    GameTextForPlayer (playerid, "~r~ The Innovative ~n~~w~ Training server ~n~~r~Enjoy your stay!", 8000, 5);
    new Rand = random(sizeof(RandomColors));
    SetPlayerColor(playerid, RandomColors[Rand]);
    GivePlayerMoney(playerid, 50000);
    SetTimerEx("Autorepair",500,true,"d",playerid);
    group[playerid][gid] = -1;
    group[playerid][invited] = -1;
    group[playerid][attemptjoin] = -1;
    new string[100], pname2[21];
    GetPlayerName(playerid, pname2, 21);
    format(string, 35, Player_File, pname2);
   
    if(!INI_Exists(string))
    {
        format(string, sizeof(string),""COL_BLUE"Name "COL_WHITE"%s "COL_YELLOW"isn't registered\n\nPlease type a password", pname2);
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_RED"Welcome on to the server", string, "Register", "Exit");
    }
    else
    {
        format(string, sizeof(string),""COL_YELLOW"Name "COL_WHITE"%s "COL_YELLOW"is registered\n\nPlease login", pname2);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""COL_YELLOW"Welcome on to the server", string, "Login", "Exit");
    }
    SetPVarInt(playerid, "Join", 1);
    return 1;
}
Reply


Messages In This Thread
Five errors - by -Shifty- - 25.04.2014, 17:53
Re: Five errors - by Konstantinos - 25.04.2014, 18:00
Re: Five errors - by -Shifty- - 25.04.2014, 18:26
Re: Five errors - by Konstantinos - 25.04.2014, 18:33
Re: Five errors - by -Shifty- - 25.04.2014, 18:46

Forum Jump:


Users browsing this thread: 3 Guest(s)