29.08.2014, 00:23
Hola tengo un 3DTextLabel y quiero hacer un salto de linea, intento con \n y \r pero este no queda.
"Use /comprar para\ncomprar."
"Use /comprar para\ncomprar."
Create3DTextLabel("Tienda de coches", COLOR_BLANCO, -694.1295, 965.8765, 12.2461, 20, 0, 0); Create3DTextLabel("\nUsa: /tcoche", COLOR_CELESTE, -694.1295, 965.8765, 12.2461, 20, 0, 0);
new string[200];
cache_get_field_content(idtl, "texto", string, mysql, 200); // Esto me trae "Use /comprar para \ncomprar."
TextoLabel[idtl] = Create3DTextLabel(string, COLOR_BLANCO, cache_get_field_content_float(idtl, "posx", mysql), cache_get_field_content_float(idtl, "posy", mysql), cache_get_field_content_float(idtl, "posz", mysql), cache_get_field_content_int(idtl, "distancia", mysql), cache_get_field_content_int(idtl, "mundo", mysql));
new string[25];
mysql_escape_string("Test\ntest2\ntest3", string, g_SQL, 25);
Create3DTextLabel(string, -1, x, y, z, 20, 0, 0);
Lo sospechй desde un principio que leн lo de MySQL, pero dude que sea... reciйn lo probй y era xD
pawn Код:
|
new string[200];
cache_get_field_content(idtl, "texto", string, mysql, 200); // Esto me trae "Use /comprar para \ncomprar."
TextoLabel[idtl] = Create3DTextLabel(string, COLOR_BLANCO, cache_get_field_content_float(idtl, "posx", mysql), cache_get_field_content_float(idtl, "posy", mysql), cache_get_field_content_float(idtl, "posz", mysql), cache_get_field_content_int(idtl, "distancia", mysql), cache_get_field_content_int(idtl, "mundo", mysql));