SA-MP Forums Archive
[Ajuda] Ajuda Bбsica - 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] Ajuda Bбsica (/showthread.php?tid=494718)



Ajuda Bбsica - OrNot - 14.02.2014

Ajuda com o Erro lб no Final??

Cуdigo do FS

PHP код:
#include <a_samp>
new Text:Reloginho1;
public 
OnFilterScriptInit()
{
    
SetTimer("reloginho",1000,1);
    
Reloginho1 TextDrawCreate(525.000000,5.000000,"--");
    
TextDrawAlignment(Reloginho1,0);
    
TextDrawBackgroundColor(Reloginho1,0x000000FF);
    
TextDrawFont(Reloginho1,2);
    
TextDrawLetterSize(Reloginho1,0.399999,2.000000);
    
TextDrawColor(Reloginho1,0xFFFFFFFF);
    
TextDrawSetProportional(Reloginho1,1);
    
TextDrawSetShadow(Reloginho1,1);
    
TextDrawSetOutline(Reloginho1,1);
    
TextDrawShowForAll(Reloginho1);
    return 
1;
}
public 
OnFilterScriptExit()return  TextDrawDestroy(Reloginho1);
public 
OnPlayerSpawn(playerid) return TextDrawHideForAll(Reloginho1);
forward reloginho(playerid);
public 
reloginho(playerid)
{
    new 
string[128], anomesdia,
    
getdate(anomesdia);
    
format(stringsizeof string"%d/%s%d/2014"dia, ((mes 10) ? ("0") : ("")), mes);
    
TextDrawSetString(Reloginho1string); 
C:\Users\Caio\Desktop\[GM]Rota dos Caminhoneiros\RDC\filterscripts\Relogio.pwn(30) : warning 219: local variable "getdate" shadows a variable at a preceding level
C:\Users\Caio\Desktop\[GM]Rota dos Caminhoneiros\RDC\filterscripts\Relogio.pwn(30) : error 001: expected token: ";", but found "("
C:\Users\Caio\Desktop\[GM]Rota dos Caminhoneiros\RDC\filterscripts\Relogio.pwn(30) : warning 215: expression has no effect
C:\Users\Caio\Desktop\[GM]Rota dos Caminhoneiros\RDC\filterscripts\Relogio.pwn(33) : error 030: compound statement not closed at the end of file (started at line 29)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Re: Ajuda Bбsica - Axll - 14.02.2014

й so fechar cara ¬¬ falta uma chave no final

--

voce foi editar o codigo que eu arrumei para voce e editou errado, e para que criar dois topicos?


Re: Ajuda Bбsica - OrNot - 14.02.2014

Me manda o cуdigo todo correto por favor.


Re: Ajuda Bбsica - Axll - 14.02.2014

Quote:
Originally Posted by OrNot
Посмотреть сообщение
Me manda o cуdigo todo correto por favor.
eu sou uma pessoa muito boa

pawn Код:
#include <a_samp>

new Text:Reloginho1;

public OnFilterScriptInit()
{
    SetTimer("reloginho",1000,1);
    Reloginho1 = TextDrawCreate(525.000000,5.000000,"--");
    TextDrawAlignment(Reloginho1,0);
    TextDrawBackgroundColor(Reloginho1,0x000000FF);
    TextDrawFont(Reloginho1,2);
    TextDrawLetterSize(Reloginho1,0.399999,2.000000);
    TextDrawColor(Reloginho1,0xFFFFFFFF);
    TextDrawSetProportional(Reloginho1,1);
    TextDrawSetShadow(Reloginho1,1);
    TextDrawSetOutline(Reloginho1,1);
    TextDrawShowForAll(Reloginho1);
    return 1;
}

public OnFilterScriptExit() return  TextDrawDestroy(Reloginho1);
public OnPlayerSpawn(playerid) return TextDrawHideForAll(Reloginho1);

forward reloginho(playerid); public reloginho(playerid)
{
    new string[128], ano, mes, dia;
    getdate(ano, mes, dia);
    format(string, sizeof string, "%d/%s%d/2014", dia, ((mes < 10) ? ("0") : ("")), mes), TextDrawSetString(Reloginho1, string);
}



Re: Ajuda Bбsica - xXCallXX - 14.02.2014

kkkkkkkkkkkkk que facil so colocar uma chave de } e o mlk nao sabe kkkkkkkkkkkk