SA-MP Forums Archive
Help me please, don't know how to put it into public - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me please, don't know how to put it into public (/showthread.php?tid=473596)



Help me please, don't know how to put it into public - Riwerry - 03.11.2013

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


Re: Help me please, don't know how to put it into public - NeMoK - 03.11.2013

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 }.