Jump to content

Cum se da "strcat" la un dialog!


xxSPEEDYxx

Recommended Posts

[glow=red,2,300]Cum sa dai strcat la un Dialog?[/glow]

[glow=red,2,300]Cum incepem:[/glow]

1. Incepem prin a creea o variabila numita de exemplu: new string[ 256 ];// string poate fii inlocuit cu ce vreti voi de ex: strg, dstr, dialog(orice)

2. Al doilea lucru pe care trebuie sa il face este sa scrie in string ce vrem noi, de exemplu:

strcat( string, "Bine a-ti venit la Tutorialul lui xxSPEEDYxx in care\n\

                  Va voi arata cum se face "strcat" la un dialog!\n");

strcat( string, "Acesta a fost un exemplu cu care puteti da "strcat" la un dialog\n\

                  Sper ca va fost de folos\n");

//Acum a pus ce vrem sa ne arate dialogul...acum doar trebuie sa il punem sa se arate nu?:))

ShowPlayerDialog(playerid, /*ce nume la dialog vreti*/, DIALOG_STYLE_MSGBOX,"Exemplu",string,"Quit","");

//Si am terminat:))

Deci dialogul nostru ar trebuii sa arate cam asa:

strcat( string, "Bine a-ti venit la Tutorialul lui xxSPEEDYxx in care\n\

                  Va voi arata cum se face "strcat" la un dialog!\n");

strcat( string, "Acesta a fost un exemplu cu care puteti da "strcat" la un dialog\n\

                  Sper ca va fost de folos\n");

ShowPlayerDialog(playerid, /*ce nume la dialog vreti*/, DIALOG_STYLE_MSGBOX,"Exemplu",string,"Quit","");

[glow=red,2,300]Acest tutorial a fost cerut aici:[/glow]http://www.sa-mp.ro/forum/index.php/topic,13121.0.html [glow=red,2,300]de catre WanTeD[/glow]

[glow=red,2,300]A si nu uitati acesta a fost primul meu Tutorial, sper ca va fost de folos...[/glow]

Fara reclama in semnatura!

Link to comment
Share on other sites

stuntman-=!!" post="81169" timestamp="1309423847"]

Cum sa pui asa ceva la un tutorial ? Productions ...

3/5 - prea multe culori, puteai folosi [nobbc]

cod

[/nobbc] ... etc.

Si http://wiki.sa-mp.com/wiki/Strcat ce are ?

ee uite am dat edit:P:))...

nu are nika http://wiki.sa-mp.com/wiki/Strcat multi nici nu cunosc site-ul ala...si ii mai usor sa se uite aici:P4

Eh.. Cam putin da mergee :))), Orice e bun 4/5

stiu:))..dar ce puteam pune mai mult intr-un tutorial ca asta?:))

Fara reclama in semnatura!

Link to comment
Share on other sites

  • 5 months later...

Civic_VTEC" post="106401" timestamp="1325612973"]

tutorialul mi-a fost de folos, dar am o intrebare. Pot sa pun la dimensiunea variabilei string 4000 sau mai mare? de ex new string[4000] ?

Da, dar ai un dialog chiar asa de mare?

Eu maxim am ajuns, la in jur de 3000 dar dialogul era aproape pe tot ecranul xD

PS. - THX ALL!

Fara reclama in semnatura!

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

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.