SA-MP Forums Archive
[Ajuda] Meu sistema registo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Meu sistema registo (/showthread.php?tid=401938)



Meu sistema registo - Rocha12 - 24.12.2012

ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Successo!",""COL_G REEN"Logaste com sucesso!","Ok","");

C:\Users\User\Desktop\DMteste.pwn(513) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\User\Desktop\DMteste.pwn(513) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(513) : error 001: expected token: ";", but found "-string-"
C:\Users\User\Desktop\DMteste.pwn(513) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(513) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(513) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(513) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\DMteste.pwn(513) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Respuesta: Meu sistema registo - Pedro Pawno - 24.12.2012

Jб edito.


Tente:

pawn Код:
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,-1,"Successo!","Logaste com sucesso!","Ok");



Re: Meu sistema registo - GTO.DoDo - 24.12.2012

Posta a Linha Anterior a Essa.


Re: Meu sistema registo - Rocha12 - 24.12.2012

SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GR EEN"Great! Your Y_INI system works perfectly. Relog to save your stats!","Ok","");

O cуdigo que voce me deu, adiciona erros a linhas posteriores


Re: Meu sistema registo - tonisantolia - 24.12.2012

Pхe o script entre [*pawn] Script Aqui [/*pawn] sem os *.


Re: Meu sistema registo - Rocha12 - 24.12.2012

Mas o Gm todo ou so a parte que esta a dar erro?


Re: Meu sistema registo - tonisantolia - 24.12.2012

Quote:
Originally Posted by Rocha12
Посмотреть сообщение
Mas o Gm todo ou so a parte que esta a dar erro?
Sу do erro


Re: Meu sistema registo - Rocha12 - 24.12.2012

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        //REGISTO
        switch( dialogid )
        {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registando...",""COL_RED"Digitaste uma senha invбlida.\n"COL_WHITE"Escreve a tua password em baixo para te registares.","Registar","Sair");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);

                SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
                SpawnPlayer(playerid);
                ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Great! Your Y_INI system works perfectly. Relog to save your stats!","Ok","");
            }
        }



Re: Meu sistema registo - HardWar - 24.12.2012

Tente:

pawn Код:
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,"{FFFFFF}Success!","{00FF00}Great! Your Y_INI system works perfectly. Relog to save your stats!","Ok","");



Re: Meu sistema registo - Rocha12 - 24.12.2012

hardwar exprimentei isso e deu me erro nisto agora.

pawn Код:
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Successo!",""COL_GREEN"Logaste com sucesso!","Ok","");
C:\Users\User\Desktop\DMteste.pwn(522) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\User\Desktop\DMteste.pwn(522) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(522) : error 001: expected token: ";", but found "-string-"
C:\Users\User\Desktop\DMteste.pwn(522) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(522) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(522) : warning 215: expression has no effect
C:\Users\User\Desktop\DMteste.pwn(522) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\DMteste.pwn(522) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.