Jump to content
  • 0

[HELP]O problema TextDraw


AirBites

Question

Deci sa va povestesc....Tot am vzt pe alte servere ca au un text draw pe ecran care de ex apare asa "Sa-mp"alb "Sa-Mp"rosu in mai multe colori sau Sta 10 secunde cu textul "Sa-Mp" dupaia se schimba in "www.sa-mp.ro"

Va rog ajutatima am vrut sa fac eu singur da m-am incurcat ba mia esit nush ce culori ba mi-a iesit 2 text draq ba mia iesit textul unu in altu......Poate stiti vreunu...

Nu beau, nu fumez, ma scol la 6 in fiecare zi, ma culc la 10, nu-mi insel nevasta... wtf ?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Creeaza un TextDraw la OnGameModeInit, si pune-l TextDrawShowForAll dupa fa un timer tot acolo cva d genu "TextDrawFlash" si pune-l la cate secunde vrei tu ( daca freci un textdraw prea mult da time-outuri sau alte buguri de kk) .

Dupa in public TextDrawFlash() folosesti TextDrawSetString, pune-l sa apara cu alte culori (faci un random sau asa ceva) sau eventual scrii cu totul alceva

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By AndreiSAMP2
      fatal error 111: user error: Did you do <YSI/y_hooks> instead of the required <YSI\y_hooks>?
    • By seek nephrite
      Salut, imi explica cineva cum fac o ruleta gen cu textdraw-uri cum e pe ruby nephrite? Adica sa arate numele si textdraw ul fiecarui obiect pe care il pun eu in ruleta, etc
    • By Ramses
      Salut, am si eu o 'problema' cu un cod de ProgressBar. E pe baza de exp si atunci cand ating (100+/100) se reseteaza la 0. Vreau ca atunci cand fac de ex. 200/100 sa faca level up si sa imi ramana 100/200 (pentru urmatorul level). 
      function giveExp(playerid, expAmount) { new exp_String[64], szStr[128], query[100]; if(!expAmount) expAmount = 1; PlayerInfo[playerid][pExp] += expAmount; SCMf(playerid, -1, "{ffffff}Ai primit %d puncte de experienta (total %d).",expAmount,PlayerInfo[playerid][pExp]); format(exp_String,64,"~g~+%d EXPERIENCE",expAmount); GameTextForPlayer(playerid,exp_String,3000,1); if(PlayerInfo[playerid][pExp] >= PlayerInfo[playerid][pNeedExp]) { PlayerInfo[playerid][pExp] = 0; UpdateProgress(playerid); PlayerInfo[playerid][pNeedExp] = PlayerInfo[playerid][pNeedExp] + 100; PlayerInfo[playerid][pLevel] ++; SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]); UpdateProgress(playerid); mysql_format(SQL, query, 100, "UPDATE `users` SET `Level` = '%d' WHERE `ID` = '%d' LIMIT 1", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, query, "", ""); Update(playerid, pNeedExpx); format(szStr, sizeof szStr,"Ai avansat la level {ffffff}%d{25a869} deoarece ai acumulat destula experienta.",PlayerInfo[playerid][pLevel]); SCM(playerid, 0x25a869FF, szStr); } return true; } function UpdateProgress(playerid) { new string[512]; format(string, sizeof(string), "Level: %d (%d/%d Exp)", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp], PlayerInfo[playerid][pNeedExp]); PlayerTextDrawSetString(playerid, HudBarTD, string); PlayerTextDrawShow(playerid, HudBarTD); SetPlayerProgressBarMaxValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pNeedExp]); SetPlayerProgressBarValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pExp]); SetPlayerProgressBarColour(playerid, HudProgress[playerid], COLOR_SVORANGE); ShowPlayerProgressBar(playerid, HudProgress[playerid]); return 1; }  
    • By AlexCelTare
      stie cineva vreun fs sau cum sa fac sa nu se mai reseteze banii la playeri cand dau relog? va rog
    • By EclyseRPGADV
      Salut asta este primul meu textdraw postat.
      Sper sa va placa!
      https://pastebin.com/jtR7AH8v

       
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.