SA-MP Forums Archive
[Ajuda] TextDraws Clicavel - 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] TextDraws Clicavel (/showthread.php?tid=573348)



TextDraws Clicavel - JuniorTheDM - 06.05.2015

PHP код:
C:\Users\Usuario\Desktop\Servidor ' Testes '\gamemodes\GM.pwn(308) : warning 213tag mismatch
C
:\Users\Usuario\Desktop\Servidor ' Testes '\gamemodes\GM.pwn(310) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\Usuario\Desktop\Servidor ' Testes '\gamemodes\GM.pwn(310) : error 029invalid expressionassumed zero
C
:\Users\Usuario\Desktop\Servidor ' Testes '\gamemodes\GM.pwn(310) : warning 215expression has no effect
C
:\Users\Usuario\Desktop\Servidor ' Testes '\gamemodes\GM.pwn(310) : error 001expected token";"but found ")"
C:\Users\Usuario\Desktop\Servidor ' Testes '\gamemodes\GM.pwn(310) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Public Dando Erro
PHP код:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == Tela_Login)
    {
         
SendClientMessage(playerid0xFFFFFFAA"LOL Tu Clicou uuheahu".");
    }
    return 1;




Re: TextDraws Clicavel - Dayvison_ - 06.05.2015

Afs man, olha teu cуdigo.. ve atй o erro no destaque da sintaxe pra que criar um topico disto?


Re: TextDraws Clicavel - Krusheer - 06.05.2015

pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == Tela_Login)
    {
         SendClientMessage(playerid, 0xFFFFFFAA, "LOL Tu Clicou uuheahu"); //coloca assim
    }
    return 1;
}



Re: TextDraws Clicavel - LuisFerreira - 06.05.2015

Cara alterado nгo '-'


Re: TextDraws Clicavel - GabrielDias_Invision - 06.05.2015

Corrija a public com as informaзхes passadas acima e certifique-se de que a variavel Tela_Login foi definida como TextDraw... Ex:

Код:
new Text:Tela_Login;



Re: TextDraws Clicavel - Vegassilva - 07.05.2015

Colocar assim o error era que vocк fez assim, "Olб".".

pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == Tela_Login)
    {
         SendClientMessage(playerid, -1, "Olб");
    }
    return 1;
}