Jump to content
  • 0

Intrebare


calin1996

Question

Din linia:

[pawn]format(statsstring, sizeof statsstring, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",string3,string4,string5,string6,string7,string8,string8);[/pawn]

Ce face :

[pawn]"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s"[/pawn]

Si cum se foloseste chestia asta:

[pawn],string3,string4,string5,string6,string7,string8,string8);[/pawn]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Hai sa iti explic sa intelegi:

deci avem de ex

[pawn]#define rVar 23[/pawn]

[pawn]format( rStrg, sizeof( rStrg ), "Numarul variabilei definita este %i" rVar );[/pawn]

In joc va aparea:

"Numarul variabilei definita este 23 "

%i    = integrer( se foloseste cand avem de aratat un numar )

%s  = string( text )

\n    = se foloseste doar la dialog si creeaza un rand nou

rVar = Variabila care contine integrerul

PS: rVar poate fii si alt nume dar eu am pus asa doar ca un exemplu.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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.