SA-MP Forums Archive
[ajuda] entrada connect - 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] entrada connect (/showthread.php?tid=295539)



[ajuda] entrada connect - Don_Speed - 06.11.2011

ao conectar no server depois de logar eu qria q fosse direto pro ponto de spawn mas ele vem para essa tela


/imageshack/img824/9382/samp000gkb.png

alguem pode me ajuda

e meu relogio ta dando erro

Код:
C:\Documents and Settings\mau tito\Desktop\Samp\gamemodes\RPG.pwn(112) : error 010: invalid function or declaration
C:\Documents and Settings\mau tito\Desktop\Samp\gamemodes\RPG.pwn(122) : error 010: invalid function or declaration
C:\Documents and Settings\mau tito\Desktop\Samp\gamemodes\RPG.pwn(132) : error 021: symbol already defined: "ProcessGameTime"
C:\Documents and Settings\mau tito\Desktop\Samp\gamemodes\RPG.pwn(134) : error 010: invalid function or declaration
Relogio Em TextDraw
pawn Код:
txtTimeDisp = TextDrawCreate(632.0,25.0,"--:--:--");//linha do erro
    TextDrawUseBox(txtTimeDisp, 0);
    TextDrawFont(txtTimeDisp, 3);
    TextDrawSetShadow(txtTimeDisp,0);
    TextDrawSetOutline(txtTimeDisp,2);
    TextDrawBackgroundColor(txtTimeDisp,0xAA3333AA);
    TextDrawColor(txtTimeDisp,0x666699F6);
    TextDrawAlignment(txtTimeDisp,3);
    TextDrawLetterSize(txtTimeDisp,0.5,1.5);

    txtDateDisp = TextDrawCreate(620.0,5.0,"00/00/0000");//linha do 2 erro
    TextDrawUseBox(txtDateDisp, 0);
    TextDrawFont(txtDateDisp, 3);
    TextDrawSetShadow(txtDateDisp,0);
    TextDrawSetOutline(txtDateDisp,2);
    TextDrawBackgroundColor(txtDateDisp,0xAA3333AA);
    TextDrawColor(txtDateDisp,0x666699F6);
    TextDrawAlignment(txtDateDisp,3);
    TextDrawLetterSize(txtDateDisp,0.5,1.5);

    ProcessGameTime();//linha do 3 erro
    SetTimer("ProcessGameTime", 1000, 1);
    return 1;//linha do 4 erro
}



Re: [ajuda] entrada connect - gabrielbnv - 06.11.2011

vc tirou a funзгo AddPlayerClass do seu OnGameModeInit?

em relaзгo aos textdraws coloca no topo do gamemode e ve se funciona.

new Text: txtTimeDisp;
new Text: txtDateDisp;

ProgressGameTime: Tira Essa Linha De Dentro da Funзгo e Coloca ela fora por exemplo no topo do gamemode pra ver se funciona


Re: [ajuda] entrada connect - junioor - 06.11.2011

ProcessGameTime();//linha do 3 erro < exclui isso

forward ProcessGameTime(); e coloca isso no topo do gm


Re: [ajuda] entrada connect - Don_Speed - 06.11.2011

o AddPlayerClass nao Foi Retirado


Re: [ajuda] entrada connect - gabrielbnv - 06.11.2011

intao na sua funзгo de logar la, na caixa de login, adiciona SpawnPlayer(playerid);


Re: [ajuda] entrada connect - Don_Speed - 06.11.2011

Cointinua os Erros Do Relogio


Re: [ajuda] entrada connect - Don_Speed - 06.11.2011

Post Original do Relogio
https://sampforum.blast.hk/showthread.php?tid=235058


Re: [ajuda] entrada connect - Don_Speed - 06.11.2011

alguem ajuda pf


Re: [ajuda] entrada connect - gabrielbnv - 06.11.2011

faz o seguinte com esses textdraws (eles tem que estar na public OnGameModeInit):

pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
    txtTimeDisp[i] = TextDrawCreate(632.0,25.0,"--:--:--");//linha do erro
    TextDrawUseBox(txtTimeDisp[i], 0);
    TextDrawFont(txtTimeDisp[i], 3);
    TextDrawSetShadow(txtTimeDisp[i],0);
    TextDrawSetOutline(txtTimeDisp[i],2);
    TextDrawBackgroundColor(txtTimeDisp[i],0xAA3333AA);
    TextDrawColor(txtTimeDisp[i],0x666699F6);
    TextDrawAlignment(txtTimeDisp[i],3);
    TextDrawLetterSize(txtTimeDisp[i],0.5,1.5);

    txtDateDisp[i] = TextDrawCreate(620.0,5.0,"00/00/0000");//linha do 2 erro
    TextDrawUseBox(txtDateDisp[i], 0);
    TextDrawFont(txtDateDisp[i], 3);
    TextDrawSetShadow(txtDateDisp[i],0);
    TextDrawSetOutline(txtDateDisp[i],2);
    TextDrawBackgroundColor(txtDateDisp[i],0xAA3333AA);
    TextDrawColor(txtDateDisp,0x666699F6);
    TextDrawAlignment(txtDateDisp[i],3);
    TextDrawLetterSize(txtDateDisp[i],0.5,1.5);

    SetTimer("ProcessGameTime", 1000, 1);
}



Re: [ajuda] entrada connect - bruno-style - 07.11.2011

Don Speed, Triple Post


pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
    txtTimeDisp[i] = TextDrawCreate(632.0,25.0,"--:--:--");//linha do erro
    TextDrawUseBox(txtTimeDisp[i], 0);
    TextDrawFont(txtTimeDisp[i], 3);
    TextDrawSetShadow(txtTimeDisp[i],0);
    TextDrawSetOutline(txtTimeDisp[i],2);
    TextDrawBackgroundColor(txtTimeDisp[i],0xAA3333AA);
    TextDrawColor(txtTimeDisp[i],0x666699F6);
    TextDrawAlignment(txtTimeDisp[i],3);
    TextDrawLetterSize(txtTimeDisp[i],0.5,1.5);

    txtDateDisp[i] = TextDrawCreate(620.0,5.0,"00/00/0000");//linha do 2 erro
    TextDrawUseBox(txtDateDisp[i], 0);
    TextDrawFont(txtDateDisp[i], 3);
    TextDrawSetShadow(txtDateDisp[i],0);
    TextDrawSetOutline(txtDateDisp[i],2);
    TextDrawBackgroundColor(txtDateDisp[i],0xAA3333AA);
    TextDrawColor(txtDateDisp,0x666699F6);
    TextDrawAlignment(txtDateDisp[i],3);
    TextDrawLetterSize(txtDateDisp[i],0.5,1.5);

    SetTimer("ProcessGameTime", 1000, 1);
}
Espero ter Ajudado