SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 29/05/2020, 05:46 PM   #11
EduInacio
Little Clucker
 
Join Date: Mar 2019
Posts: 37
Reputation: 5
Default Re: Adicionar TextDraw

Quote:
Originally Posted by SkolPlay View Post
Agora não está mostrando o textdraw na tela...
E quando copila, aparece isto: (14067) warning 213: tag mismatch

pawn Code:
(14067)TextDrawShowForPlayer(playerid, TextCash[playerid]);
Mude para PlayerTextDrawShow

Dá uma olhadinha nesse link, pode ajudar no conhecimento sobre TextDraws
__________________
EduInacio is offline   Reply With Quote
Old 29/05/2020, 09:05 PM   #12
SkolPlay
Big Clucker
 
Join Date: Aug 2016
Posts: 193
Reputation: 0
Default Re: Adicionar TextDraw

Quote:
Originally Posted by EduInacio View Post
Mude para PlayerTextDrawShow

Dá uma olhadinha nesse link, pode ajudar no conhecimento sobre TextDraws
Não funcionou, nem tá aparecendo o textdraw
SkolPlay is offline   Reply With Quote
Old 29/05/2020, 09:34 PM   #13
cicinho
Huge Clucker
 
cicinho's Avatar
 
Join Date: Feb 2015
Location: Brasil - Alagoas
Posts: 252
Reputation: 8
Default Re: Adicionar TextDraw

Quote:
Originally Posted by SkolPlay View Post
Não funcionou, nem tá aparecendo o textdraw
Tenta aí...

PHP Code:

new PlayerText:TextCash[MAX_PLAYERS],
    
Timer[MAX_PLAYERS];

public 
OnPlayerConnect(playerid)
{
    
TextCash[playerid] = CreatePlayerTextDraw(playerid29.000000296.933471"Cash:");
    
PlayerTextDrawLetterSize(playeridTextCash[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextCash[playerid], 1);
    
PlayerTextDrawColor(playeridTextCash[playerid], -1);
    
PlayerTextDrawSetShadow(playeridTextCash[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextCash[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextCash[playerid], 51);
    
PlayerTextDrawFont(playeridTextCash[playerid], 1);
    
PlayerTextDrawSetProportional(playeridTextCash[playerid], 1);
    
PlayerTextDrawShow(playeridTextCash[playerid]);

    
Timer[playerid] = SetTimerEx("AtualizarCash"1000true"i"playerid);

    return 
true;
}

forward AtualizarCash(playerid);
public 
AtualizarCash(playerid)
{
    new 
String[36];
    
format(String36"Cash: %d"Cash[playerid]);
    
PlayerTextDrawSetString(playeridTextCash[playerid], String);
    return 
true;
}

public 
OnPlayerDisconnect(playerid)
{
    
KillTimer(Timer[playerid]);
    return 
true;

__________________


HostName: GTA Torcidas - [PC/Android]
Address: server.gtatorcidas.net:2009
Language: Portugues | Brasil PT-BR
Weburl: https://www.gtatorcidas.net
cicinho is offline   Reply With Quote
Old 29/05/2020, 10:03 PM   #14
SkolPlay
Big Clucker
 
Join Date: Aug 2016
Posts: 193
Reputation: 0
Default Re: Adicionar TextDraw

Quote:
Originally Posted by cicinho View Post
Tenta aí...

PHP Code:

new PlayerText:TextCash[MAX_PLAYERS],
    
Timer[MAX_PLAYERS];

public 
OnPlayerConnect(playerid)
{
    
TextCash[playerid] = CreatePlayerTextDraw(playerid29.000000296.933471"Cash:");
    
PlayerTextDrawLetterSize(playeridTextCash[playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextCash[playerid], 1);
    
PlayerTextDrawColor(playeridTextCash[playerid], -1);
    
PlayerTextDrawSetShadow(playeridTextCash[playerid], 0);
    
PlayerTextDrawSetOutline(playeridTextCash[playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridTextCash[playerid], 51);
    
PlayerTextDrawFont(playeridTextCash[playerid], 1);
    
PlayerTextDrawSetProportional(playeridTextCash[playerid], 1);
    
PlayerTextDrawShow(playeridTextCash[playerid]);

    
Timer[playerid] = SetTimerEx("AtualizarCash"1000true"i"playerid);

    return 
true;
}

forward AtualizarCash(playerid);
public 
AtualizarCash(playerid)
{
    new 
String[36];
    
format(String36"Cash: %d"Cash[playerid]);
    
PlayerTextDrawSetString(playeridTextCash[playerid], String);
    return 
true;
}

public 
OnPlayerDisconnect(playerid)
{
    
KillTimer(Timer[playerid]);
    return 
true;

Funcionou perfeitamente, obrigado!

Last edited by SkolPlay; 29/05/2020 at 10:42 PM.
SkolPlay is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Adicionar linha... Ley Português/Portuguese 4 06/03/2018 12:38 AM
Adicionar CMD: Jetpack maicon098 Português/Portuguese 3 14/01/2017 12:33 PM
[Ajuda] adicionar um 1 mes + LocoGamer Português/Portuguese 4 05/03/2015 02:38 PM
[Ajuda] Adicionar gasolina e o sv cai... eNtinityGaming Português/Portuguese 3 19/02/2014 10:14 PM
[Ajuda] Adicionar euros goldspy98 Português/Portuguese 0 17/07/2013 09:28 PM


All times are GMT. The time now is 03:48 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.