[Ajuda] Como corrigir esse erro?
#1

Код:
853. ReloginhoTime79 = TextDrawCreate(394.000000, 326.000000, "\");
854. TextDrawBackgroundColor(ReloginhoTime79, 255);
855. TextDrawFont(ReloginhoTime79, 1);
856. TextDrawLetterSize(ReloginhoTime79, 0.459999, 0.699999);
857. TextDrawColor(ReloginhoTime79, -1);
858. TextDrawSetOutline(ReloginhoTime79, 0);
859. TextDrawSetProportional(ReloginhoTime79, 1);
860. TextDrawSetShadow(ReloginhoTime79, 0);
861. TextDrawSetSelectable(ReloginhoTime79, 0);
й o seguinte eu tenho esse textdraw aqui em um sistema de relogio que eu fiz, que nгo vem a parte.
Tem um erro bбsico que й quando coloco um \ no textdraw ele Buga na hora de compilar
Код:
C:\Users\User\Not_Defined\GameMode\gamemodes\grandlarc.pwn(853) : error 037: invalid string (possibly non-terminated string)
C:\Users\User\Not_Defined\GameMode\gamemodes\grandlarc.pwn(853) : warning 215: expression has no effect
C:\Users\User\Not_Defined\GameMode\gamemodes\grandlarc.pwn(853) : error 001: expected token: ";", but found ")"
C:\Users\User\Not_Defined\GameMode\gamemodes\grandlarc.pwn(853) : error 029: invalid expression, assumed zero
C:\Users\User\Not_Defined\GameMode\gamemodes\grandlarc.pwn(853) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
quando mudo de \ para qualquer outro carбcter 'Vбlido' isso desaparece.
Mas fico curioso se na hora de criar o textdraw no Zamaroth's td, Como ele criou? se nгo й um carбctere vбlido. Gostaria de saber a soluзгo,
Agradeзo desde jб a todos que se disponibilizar um minuto para me ajudar.
Reply
#2

Pelo que eu sei o \ serve para quebrar a linha, ou seja, caso tu queira continuar a string na linha de baixo vocк usa \

Exemplo:

PHP код:
    ReloginhoTime79 TextDrawCreate(394.000000326.000000"aaaaaaaa\
    aaaaaaaaaaaaaa"
);
    
TextDrawBackgroundColor(ReloginhoTime79255);
    
TextDrawFont(ReloginhoTime791);
    
TextDrawLetterSize(ReloginhoTime790.4599990.699999);
    
TextDrawColor(ReloginhoTime79, -1);
    
TextDrawSetOutline(ReloginhoTime790);
    
TextDrawSetProportional(ReloginhoTime791);
    
TextDrawSetShadow(ReloginhoTime790);
    
TextDrawSetSelectable(ReloginhoTime790); 
Jб no Zamaroth ele deve ter criado pois ele seta a string in-game e nгo da esse problema na hora de compilar

Corrijam-me se eu estiver errado
Reply
#3

falo do caractere barra invertida codigo: 005C que eu quero usar como um estilo de design e nгo simplesmente quebrar a linha
Reply
#4

Quote:
Originally Posted by TheBob
Посмотреть сообщение
falo do caractere barra invertida codigo: 005C que eu quero usar como um estilo de design e nгo simplesmente quebrar a linha
Faz o seguinte, pega o / no zamaroth e muda a scale dele na posiзгo oposta, assim ele vai ficar invertido
Reply
#5

Como muda o scale?
Reply
#6

Use "\\" no TextdrawCreate ao invйs de "\" , mapa de escapes:

Код:
 
\0	NULL character	Ends a string.
EOS	NULL character	(same as above)
\n	Line feed	use \n for a new line in Linux (also works in Windows)
\r	Carriage return	Use \r\n for a new line in Windows
\\	Backslash	Used to put an actual backslash in a string
\'	Single quote	Used to use an actual single quote as a character in single quotes (use: '\'')
\"	Double quotes	Used to put an actual double quote in a string
\xNNN;	Hex number	Used to set the character to the character represented by the hex number specified in place on NNN
\NNN;	Number	Used to set the character to the character represented by the number specified in place of NNN (see \0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)