Benalek 0 Odesláno: 21. Říjen, 2012 Share Odesláno: 21. Říjen, 2012 Zdarec, mam udělany text draw na body, a chi aby se mi aktualizoval textdraw když se mi přičte bod.. Timer na přidani bodu public boddej() { for(new i=0; i< MAX_PLAYERS; i++) { new string[300]; format(string, sizeof(string), "POINTS: %d", body[i]); TextDrawSetString(Textdraw1,string); } return 0; } TEXTDRAW Textdraw1 = TextDrawCreate(561.000000, 107.000000, "POINTS: 0"); TextDrawAlignment(Textdraw1, 3); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 1); TextDrawLetterSize(Textdraw1, 0.500000, 1.800000); TextDrawColor(Textdraw1, -16776961); TextDrawSetOutline(Textdraw1, 1); TextDrawSetProportional(Textdraw1, 1); Díky všem, jinak žadny error to nehazi, ale nepřičita body. Link to comment Share on other sites More sharing options...
0 Fr0st 23 Odesláno: 21. Říjen, 2012 Share Odesláno: 21. Říjen, 2012 Máš vôbec niečo také v nejakom publicu že body[playerid]++; ? Link to comment Share on other sites More sharing options...
0 Benalek 0 Odesláno: 21. Říjen, 2012 Author Share Odesláno: 21. Říjen, 2012 Zatim ne, ale udelal sem si přikaz if (strcmp("/b", cmdtext, true, 10) == 0) { SendClientMessage(playerid,red,"Bod přidan"); body[playerid]++; return 1; } Link to comment Share on other sites More sharing options...
0 DooM 93 Odesláno: 21. Říjen, 2012 Share Odesláno: 21. Říjen, 2012 Kde vyvolavas public boddej() ? Link to comment Share on other sites More sharing options...
0 Fr0st 23 Odesláno: 21. Říjen, 2012 Share Odesláno: 21. Říjen, 2012 ten public sa nemá ako vyvolať proste musíš si dať na to timer ... SetTimer("NAZOVPUB",1000,1); Link to comment Share on other sites More sharing options...
0 Benalek 0 Odesláno: 21. Říjen, 2012 Author Share Odesláno: 21. Říjen, 2012 To mam taky v modu Link to comment Share on other sites More sharing options...
0 EEEE 8 Odesláno: 21. Říjen, 2012 Share Odesláno: 21. Říjen, 2012 Presne to som sa ho teraz pýtal v chate. Totiž podľa mňa, nikde. Link to comment Share on other sites More sharing options...
Dotaz
Benalek 0
Zdarec, mam udělany text draw na body, a chi aby se mi aktualizoval textdraw když se mi přičte bod..
Timer na přidani bodu
TEXTDRAW
Díky všem, jinak žadny error to nehazi, ale nepřičita body.
Link to comment
Share on other sites
6 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