djejsy 0 Odesláno: 17. Leden, 2013 Share Odesláno: 17. Leden, 2013 Cavko potreboval by som poradit ako dat do dialogu viac stringov, pretoze jeden tam dat viem ale ako je to s viacerimi? Chcel by som to takto: SetPlayerHealth(playerid,dUserINT(PlayerName(playerid)).("Zdravie")); GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("Peniaze")-GetPlayerMoney(playerid)); format(string,string2, sizeof(string),"Informácie o účte:\nZdravie:%d HP\nPeniaze:%d €\n",GetPlayerHealth(playerid),GetPlayerMoney(playerid)); ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Vítaj späť",string,string2,"OK","OK"); ale to pise mischmatch a nesuhlasi pocet argumentov a neviem prist nato ako by sa to dalo. Skuste niekto poradit. Dakujem. // Edit: Vyriesene pomocou strcat. LOCK Link to comment Share on other sites More sharing options...
0 Administrátor Ewwe 434 Odesláno: 18. Leden, 2013 Administrátor Share Odesláno: 18. Leden, 2013 protoze tam pripisujes hovadiny format(string,string2, sizeof(string), ,"Vítaj späť",string,string2, Link to comment Share on other sites More sharing options...
0 FiZZy 12 Odesláno: 18. Leden, 2013 Share Odesláno: 18. Leden, 2013 // Edit: Vyriesene pomocou strcat. ...ale string, string2 tam zůstal, že? Link to comment Share on other sites More sharing options...
0 djejsy 0 Odesláno: 18. Leden, 2013 Author Share Odesláno: 18. Leden, 2013 Nie new STRING[300], string1[150], string2[150]; new Float:hp; GetPlayerHealth(playerid,hp); format(string1, 150, "Peniaze: %d\n\n", GetPlayerMoney(playerid)); format(string2, 150, "Zdravie: %f\n\n", hp); strcat(STRING, string1); strcat(STRING, string2); Ale chyba je ze to nechce vypisat ten string 2 vzy tam je 0.0000 Link to comment Share on other sites More sharing options...
Dotaz
djejsy 0
Cavko potreboval by som poradit ako dat do dialogu viac stringov, pretoze jeden tam dat viem ale ako je to s viacerimi?
Chcel by som to takto:
ale to pise mischmatch a nesuhlasi pocet argumentov a neviem prist nato ako by sa to dalo.
Skuste niekto poradit.
Dakujem.
// Edit:
Vyriesene pomocou strcat.
LOCK
Link to comment
Share on other sites
3 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now