[Ajuda] 2 Text Draw's no Servidor
#1

Oii povo! Olha eu de novo aqui >.<

Bom, agora, preciso de uma ajuda urgente.. Estou a criar um servidor de Roleplay. Vai demorar muito pra lanзar pois ainda tenho que terminar de estudar a wiki, assim, criando o servidor com os meus conceitos e conhecimentos. Hoje, quis criar 2 textdraws. Fiz tudo certinho, como na wiki dizia, sу que, no servidor sу mostrava um....

PHP код:
 public OnGameModeInit()
{
    
TDEditor_TD[0] = TextDrawCreate(41.199916293.039733"San Francisco");
    
TextDrawLetterSize(TDEditor_TD[0], 0.4551991.599997);
    
TextDrawAlignment(TDEditor_TD[0], 1);
    
TextDrawColor(TDEditor_TD[0], -1);
    
TextDrawSetShadow(TDEditor_TD[0], 2);
    
TextDrawSetOutline(TDEditor_TD[0], 0);
    
TextDrawBackgroundColor(TDEditor_TD[0], 255);
    
TextDrawFont(TDEditor_TD[0], 3);
    
TextDrawSetProportional(TDEditor_TD[0], 1);
    
TextDrawSetShadow(TDEditor_TD[0], 2);
    
TDEditor_TD[1] = TextDrawCreate(66.000022322.906677"ROLEPLAY");
    
TextDrawLetterSize(TDEditor_TD[1], 0.3455981.838930);
    
TextDrawAlignment(TDEditor_TD[1], 1);
    
TextDrawColor(TDEditor_TD[1], -16776961);
    
TextDrawSetShadow(TDEditor_TD[1], 2);
    
TextDrawSetOutline(TDEditor_TD[1], 0);
    
TextDrawBackgroundColor(TDEditor_TD[1], 255);
    
TextDrawFont(TDEditor_TD[1], 3);
    
TextDrawSetProportional(TDEditor_TD[1], 1);
    
TextDrawSetShadow(TDEditor_TD[1], 2);
    
SetGameModeText("SF:RP");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TextDrawShowForAll(playeridTDEditor_TD);
    return 
1;

O que devo fazer para aparecer os 2 textdraws??
Reply
#2

PHP код:
for(new 0sizeof(TDEditor_TD); i++){ TextDrawShowForPlayer(playeridTDEditor_TD[i]);} 
ou

PHP код:
TextDrawShowForPlayer(playeridTDEditor_TD[0]),TextDrawShowForPlayer(playeridTDEditor_TD[1]; 
Reply
#3

Vocк usa o modo de exibiзгo para todo mundo do server:
Quote:

TextDrawShowForAll(playerid, TDEditor_TD[0]);
TextDrawShowForAll(playerid, TDEditor_TD[1]);

Ou para determinados players, como o @Whoo postou:
Quote:

TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
TextDrawShowForPlayer(playerid, TDEditor_TD[1]);

Reply
#4

Obrigado! ajudou MUITO!!
Reply
#5

Eu jб tф comeзando a entender mais e mais do Pawno.. O Whoo utilizou o Cуdigo

TextDrawShowForPlayer(playerid, TDEditor_TD[0]),TextDrawShowForPlayer(playerid, TDEditor_TD[1];

E Esqueceu o ")" no final.. Eu fui compilar e deu erro, quando fui ver, eu resolvi..
Reply
#6

Quote:
Originally Posted by MineiriinHo
Посмотреть сообщение
Eu jб tф comeзando a entender mais e mais do Pawno.. O Whoo utilizou o Cуdigo

TextDrawShowForPlayer(playerid, TDEditor_TD[0]),TextDrawShowForPlayer(playerid, TDEditor_TD[1];

E Esqueceu o ")" no final.. Eu fui compilar e deu erro, quando fui ver, eu resolvi..
Se acha q parкntes causa um errinho, tenta deixar uma chave aberta! Vai ver o q й missгo impossivel!
Reply
#7

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Se acha q parкntes causa um errinho, tenta deixar uma chave aberta! Vai ver o q й missгo impossivel!
Missгo impossнvel ? what, e sу saber fechar ou usar um tabulador, nгo tem segredos.
Reply
#8

Quote:
Originally Posted by LockedLucas
Посмотреть сообщение
Missгo impossнvel ? what, e sу saber fechar ou usar um tabulador, nгo tem segredos.
Eu n conhecia o tabulador, e se o scripter tbm n conhece e ai? vai chamar Deus tbm?
Й comum vc criar uma funзгo e ir criando outras e compilar no final e dar problema!
Reply
#9

Com o tempo esses novatos e esquecidinhos aprendem.
Reply
#10

Quote:
Originally Posted by LockedLucas
Посмотреть сообщение
Com o tempo esses novatos e esquecidinhos aprendem.
Concordo, atй lб, jб n sгo mais novatos!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)