Jump to content

Ajutor TextDraw


Recommended Posts

Buna ziua am o problema, nu imi citeste textdrawul corect din baza de date imi puteti spune ce este neinregula va rog?

P.S: Este vorba doar de text, numerele mi le ia fara nici o problema presupun ca problema este undeva de aici

 

		cache_get_field_content(i,"Titlu", result);                     	 format(Businessuri[idx][Titlu], 32, result);
		cache_get_field_content(i,"Propietar", result);                      format(Businessuri[idx][Propietar], 32, result);

format(result,sizeof(result),"%s\nPropietar: %s\nPret:%s\nBussines ID:%d",Businessuri[i][Titlu],Businessuri[i][Propietar],DecimalPoint(Businessuri[i][Pret]),i);
Businessuri[i][BusinessLabel] = CreateDynamic3DTextLabel(result, COLOR_WHITE, Businessuri[i][IntrareX], Businessuri[i][IntrareY], Businessuri[i][IntrareZ],5.0);

http://imgur.com/Z9xUu8R

Link to comment
Share on other sites

În baza de fate, la tip este trecut varchar?

1 hour ago, Darkness said:

Buna ziua am o problema, nu imi citeste textdrawul corect din baza de date imi puteti spune ce este neinregula va rog?

P.S: Este vorba doar de text, numerele mi le ia fara nici o problema presupun ca problema este undeva de aici

 


		cache_get_field_content(i,"Titlu", result);                     	 format(Businessuri[idx][Titlu], 32, result);
		cache_get_field_content(i,"Propietar", result);                      format(Businessuri[idx][Propietar], 32, result);

format(result,sizeof(result),"%s\nPropietar: %s\nPret:%s\nBussines ID:%d",Businessuri[i][Titlu],Businessuri[i][Propietar],DecimalPoint(Businessuri[i][Pret]),i);
Businessuri[i][BusinessLabel] = CreateDynamic3DTextLabel(result, COLOR_WHITE, Businessuri[i][IntrareX], Businessuri[i][IntrareY], Businessuri[i][IntrareZ],5.0);

http://imgur.com/Z9xUu8R

 

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

23 minutes ago, Ainox said:

Nu se numesc textdraw uri domnule scripter :)

Sunt sigur ca se refera la 3dtext label nu la textdraw domnule scripter, deci nu e o greseala asa mare.

Verifica daca variabila asta  

BusinessLabel

Are 3dtext:BusinessLabel  in fata asa, si daca variabila asta 

Titlu

Este declarata vector adica asa

Titlu[70]

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.