Help me please, don't know how to put it into public
#1

Hello guys, i seriously don't know how to put next lines to this public, but I'm getting errors. yeah, I'm noob.

My current public:

pawn Code:
public OnPlayerConnect (playerid)
{
    PrihlasenyPouzivatel [playerid] = 0;
    if (fexist (PouzivateloveUmiestnenie (playerid)))
    {
        INI_ParseFile (PouzivateloveUmiestnenie (playerid), "NacitavaniePouzivatelov", .bExtra = true, .extra = playerid);
        ShowPlayerDialog (playerid, DIALOG_PRIHLASOVANIE, DIALOG_STYLE_PASSWORD,""FARBA_BIELA"Login",""FARBA_BIELA"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTRACIA, DIALOG_STYLE_PASSWORD,""FARBA_BIELA"Registering...",""FARBA_BIELA"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
And i need to put at begin of this public this

pawn Code:
TogglePlayerSpectating (playerid, true);
SetPlayerPos (playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos (playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt (playerid, 1958.3783, 1343.1572, 15.3746);}
Thanks
Reply
#2

pawn Code:
public OnPlayerConnect (playerid)
{
TogglePlayerSpectating (playerid, 1);
SetPlayerPos (playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos (playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt (playerid, 1958.3783, 1343.1572, 15.3746);

    PrihlasenyPouzivatel [playerid] = 0;
    if (fexist (PouzivateloveUmiestnenie (playerid)))
    {
        INI_ParseFile (PouzivateloveUmiestnenie (playerid), "NacitavaniePouzivatelov", .bExtra = true, .extra = playerid);
        ShowPlayerDialog (playerid, DIALOG_PRIHLASOVANIE, DIALOG_STYLE_PASSWORD,""FARBA_BIELA"Login",""FARBA_BIELA"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTRACIA, DIALOG_STYLE_PASSWORD,""FARBA_BIELA"Registering...",""FARBA_BIELA"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
WITHOUT }
Original:
Quote:

TogglePlayerSpectating (playerid, true);
SetPlayerPos (playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos (playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt (playerid, 1958.3783, 1343.1572, 15.3746);}
LOOK THE }.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)