[Pomoc] Login/Reg Sistem

Započeo Braxton, Februar 15, 2014, 21:15:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja
Problem: Ovako,uradio sam clickable login/reg,sve je dobro,medjutim izbacuje mi jedan error koji nzm resiti
Kakvu pomoc trebam(Video/Obicna (obavezno!)): Obicna

Errori:

C:\Documents and Settings\Administrator\Desktop\Bane\Programiranje\Expert City x1.0 By Braxton\gamemodes\EC.pwn(96850) : error 030: compound statement not closed at the end of file (started at line 96794)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


To je ova linija
CancelSelectTextDraw(playerid);

Cela Skripta
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == Login4)
    {
    CancelSelectTextDraw(playerid);
    TextDrawHideForPlayer(playerid,Login0);
    TextDrawHideForPlayer(playerid,Login1);
    TextDrawHideForPlayer(playerid,Login2);
    TextDrawHideForPlayer(playerid,Login3);
    TextDrawHideForPlayer(playerid,Login4);
    TextDrawHideForPlayer(playerid,Login5);

new string[768];
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
    if(IsPlayerNPC(playerid))
{
    SpawnPlayer(playerid);
return 1;
}
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
if (gPlayerAccount[playerid] != 0)
{
ClearChatbox(playerid, 20);
new loginstring[512];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
            format(loginstring,sizeof(loginstring),"{FFFFFF}Dobrodosao nazad na {FFAF00}Expert City RPG{FFFFFF}. Vas racun je registrovan.\n   {FFFFFF}Ukucajte password da se prijavite.\n\n{FFFFFF}Ukoliko ste zaboravili vasu lozinku obratite\n{FFFFFF}se administratorima foruma koji ce vam rado izaci u susret.\n{FFFFFF}Uzivajte u igranju, {FFAF00}[EC:RP Team]{FFFFFF}.\n\n{FFAF00}NAPOMENA: {FFFFFF}Admin Team {FFAF00}nije {FFFFFF}odgovoran za gubitak vase lozinke.",loginname);
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"{FFAF00}Login",loginstring,"Prijavi se","Izadji");
}
else
{
ClearChatbox(playerid, 20);
            new regstring[512];
    new regname[64];
    SetPlayerCameraPos(playerid, 1452.3011, -1717.2069, 33.8673 );
            SetPlayerCameraLookAt(playerid, 1457.7862, -1725.0405, 30.9436 );
    GetPlayerName(playerid,regname,sizeof(regname));
        format(regstring,sizeof(regstring),"{FFFFFF}Dobrodosao na {FFAF00}Expert City RPG{FFFFFF}. Vas racun nije registrovan.\n   {FFFFFF}Ukucajte password da se registrujete.\n{FFFFFF}Lozinku zapisite na papir ili u neki fajl.\n{FFFFFF}Nas tim vraca lozinke samo ako imate dobre dokaze\n{FFFFFF}da je account u vasem vlasnistvu.\n\n{FFFFFF}Uzivajte u igranju, {FFAF00}[EC:RP Team]{FFFFFF}.",regname);
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"{FFAF00}Register",regstring,"Registruj se","Izadji");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
LoginLog(string);
return 1 ;
}
else
{
if(clickedid == Login5) //Textdraw Izlaz iz Igre
    {
    SendClientMessage(playerid, COLOR_GREY,"* Klikni na \"Odbiti\", za igru morate prihvatiti sva pravila");
Kick(playerid);
}
    return 1;
}


PS Pomoc Hitno!!!

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == Login4)
    {
    CancelSelectTextDraw(playerid);
    TextDrawHideForPlayer(playerid,Login0);
    TextDrawHideForPlayer(playerid,Login1);
    TextDrawHideForPlayer(playerid,Login2);
    TextDrawHideForPlayer(playerid,Login3);
    TextDrawHideForPlayer(playerid,Login4);
    TextDrawHideForPlayer(playerid,Login5);

new string[768];
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
    if(IsPlayerNPC(playerid))
{
    SpawnPlayer(playerid);
return 1;
}
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
if (gPlayerAccount[playerid] != 0)
{
ClearChatbox(playerid, 20);
new loginstring[512];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
            format(loginstring,sizeof(loginstring),"{FFFFFF}Dobrodosao nazad na {FFAF00}Expert City RPG{FFFFFF}. Vas racun je registrovan.\n   {FFFFFF}Ukucajte password da se prijavite.\n\n{FFFFFF}Ukoliko ste zaboravili vasu lozinku obratite\n{FFFFFF}se administratorima foruma koji ce vam rado izaci u susret.\n{FFFFFF}Uzivajte u igranju, {FFAF00}[EC:RP Team]{FFFFFF}.\n\n{FFAF00}NAPOMENA: {FFFFFF}Admin Team {FFAF00}nije {FFFFFF}odgovoran za gubitak vase lozinke.",loginname);
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"{FFAF00}Login",loginstring,"Prijavi se","Izadji");
}
else
{
ClearChatbox(playerid, 20);
            new regstring[512];
    new regname[64];
    SetPlayerCameraPos(playerid, 1452.3011, -1717.2069, 33.8673 );
            SetPlayerCameraLookAt(playerid, 1457.7862, -1725.0405, 30.9436 );
    GetPlayerName(playerid,regname,sizeof(regname));
        format(regstring,sizeof(regstring),"{FFFFFF}Dobrodosao na {FFAF00}Expert City RPG{FFFFFF}. Vas racun nije registrovan.\n   {FFFFFF}Ukucajte password da se registrujete.\n{FFFFFF}Lozinku zapisite na papir ili u neki fajl.\n{FFFFFF}Nas tim vraca lozinke samo ako imate dobre dokaze\n{FFFFFF}da je account u vasem vlasnistvu.\n\n{FFFFFF}Uzivajte u igranju, {FFAF00}[EC:RP Team]{FFFFFF}.",regname);
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"{FFAF00}Register",regstring,"Registruj se","Izadji");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
LoginLog(string);
return 1 ;
}
else
{
      if(clickedid == Login5) //Textdraw Izlaz iz Igre
          {
      SendClientMessage(playerid, COLOR_GREY,"* Klikni na \"Odbiti\", za igru morate prihvatiti sva pravila");
  Kick(playerid);
  }
}
}
    return 1;
}
69

Hvala,reseno,molim moderatora da lock !! :)