mark 0 Odesláno: 8. Duben, 2013 Share Odesláno: 8. Duben, 2013 Čaute do modu som si spravil že keď niekoho specujem tak sa mi v TD zobrazí jeho meno, kolko má hp, vestu, peniaze Ale mam problém že keď niekoho specujem tak mi hp ukáže takto: A takto mám kod: new Float:hp; GetPlayerHealth(id, hp); format(string,sizeof(string), "Sledujete: %s / Zivot: %d / Vesta: %d / Peniaze: %d $",Jmeno(id),hp,vesta,ZistitPeniaze(id)); Link to comment Share on other sites More sharing options...
0 Martin15 4 Odesláno: 8. Duben, 2013 Share Odesláno: 8. Duben, 2013 GetPlayerHealth(id, hp); nezmysel.. hp = GetPlayerHealth(id); Link to comment Share on other sites More sharing options...
0 mark 0 Odesláno: 8. Duben, 2013 Author Share Odesláno: 8. Duben, 2013 number of arguments does not match definition Riadok: hp = GetPlayerHealth(id); Link to comment Share on other sites More sharing options...
0 _Martin_ 10 Odesláno: 8. Duben, 2013 Share Odesláno: 8. Duben, 2013 Predtým ako napíšeš, že niečo je nezmysel si to over na wiki http://wiki.sa-mp.com//wiki/GetPlayerHealth a myslím, že %d je na integer ale vzhľadom nato, že Health a Vesta sú float tak musíš pri nich dať %f 1 Link to comment Share on other sites More sharing options...
0 mark 0 Odesláno: 8. Duben, 2013 Author Share Odesláno: 8. Duben, 2013 _Martin_ Dik idem to skúsiť ale s %f by to malo isť toto ma nenapadlo dik Link to comment Share on other sites More sharing options...
Dotaz
mark 0
Čaute do modu som si spravil že keď niekoho specujem tak sa mi v TD zobrazí jeho meno, kolko má hp, vestu, peniaze
Ale mam problém že keď niekoho specujem tak mi hp ukáže takto:
A takto mám kod:
new Float:hp;
GetPlayerHealth(id, hp);
format(string,sizeof(string), "Sledujete: %s / Zivot: %d / Vesta: %d / Peniaze: %d $",Jmeno(id),hp,vesta,ZistitPeniaze(id));
Link to comment
Share on other sites
4 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