Guest [*LoNg*]LiFe Odesláno: 16. Prosinec, 2008 Share Odesláno: 16. Prosinec, 2008 new Text:nwm[MAX_PLAYERS]; forward neco(); ongamemodeinit SetTimer("neco",1000,1); for(new i=0;i<= GetMaxPlayers();i++) { nwm[i] = TextDrawCreate(200,300, " "); TextDrawLetterSize(nwm[i],0.4,1.4);// TextDrawColor(nwm[i],0xAFAFAFAA); TextDrawFont(nwm[i],3); TextDrawSetOutline(nwm[i],1); } onplayerconect TextDrawShowForPlayer(playerid,nwm[playerid]); public public neco() { for(new i=0;i<= GetMaxPlayers();i++) { new string[256]; format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn[i],hodinaa[i],minutka[i]); TextDrawSetString(nwm[i],string); } } problem je vtom ze ked pridem na server tak mi nejdu povolania a spawni pls help velmi Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 16. Prosinec, 2008 Share Odesláno: 16. Prosinec, 2008 tímto to asi nebude ... to textdraw nezpůsobí ... Link to comment Share on other sites More sharing options...
0 Guest [*LoNg*]LiFe Odesláno: 24. Prosinec, 2008 Share Odesláno: 24. Prosinec, 2008 freewalle ale je to tim dal som to prec a uz to nerobí bol by som rad kdybi ste mi pomohli Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 26. Prosinec, 2008 Share Odesláno: 26. Prosinec, 2008 zkus : public neco() { for(new i=0;i<= GetMaxPlayers();i++) { new string[256]; format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn[i],hodinaa[i],minutka[i]); TextDrawSetString(nwm[i],string); } return 1; } Link to comment Share on other sites More sharing options...
0 Guest [*LoNg*]LiFe Odesláno: 26. Prosinec, 2008 Share Odesláno: 26. Prosinec, 2008 freewalle aj tak to nejde cele to mam takto cas to ukazuje ale vsetko ostatne nejde pomoc new Text:nwm[MAX_PLAYERS]; forward neco(); SetTimer("neco",1000,1); for(new i=0;i<= GetMaxPlayers();i++) { nwm = TextDrawCreate(200,300, " "); TextDrawLetterSize(nwm,0.4,1.4);// TextDrawColor(nwm,0xAFAFAFAA); TextDrawFont(nwm,3); TextDrawSetOutline(nwm,1); } SetTimer("minutaa",60000,1); public minutaa() { for (new i = 0; i { if (IsPlayerConnected(i)) { minutka ++; if (minutka > 59) { minutka = 0; hodinaa ++; if (hodinaa > 23) { hodinaa = 0; denn ++; } } } } return 1; } public neco() { for(new i=0;i<= GetMaxPlayers();i++) { new string[256]; format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn,hodinaa,minutka); TextDrawSetString(nwm,string); } return 1; } Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 26. Prosinec, 2008 Share Odesláno: 26. Prosinec, 2008 skus nvm ..neco sem tam upravil a pridal zbytek si uprav..textdraw normalne mel by se ukazat #include new Text:nwm; new minutka; new hodinaa; new denn; forward neco(); forward minutaa(); public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, nwm); return 1; } public OnPlayerDisconnect(playerid) { TextDrawHideForPlayer(playerid, nwm); return 1; } public OnGameModeInit() { for(new i=0;i<= GetMaxPlayers();i++) { nwm = TextDrawCreate(200,300, " "); TextDrawLetterSize(nwm,0.4,1.4);// TextDrawColor(nwm,0xAFAFAFAA); TextDrawFont(nwm,3); TextDrawSetOutline(nwm,1); } SetTimer("minutaa",60000,1); SetTimer("neco",1000,1); return 1; } public minutaa() { for (new i = 0; i { if (IsPlayerConnected(i)) { minutka ++; if (minutka > 59) { minutka = 0; hodinaa ++; if (hodinaa > 23) { hodinaa = 0; denn ++; } } } } return 1; } public neco() { new string[256]; format(string,256,"Dni : %d , Hodin : %d , Minut : %d",denn,hodinaa,minutka); TextDrawSetString(nwm,string); return 1; } Link to comment Share on other sites More sharing options...
0 Guest [*LoNg*]LiFe Odesláno: 26. Prosinec, 2008 Share Odesláno: 26. Prosinec, 2008 dik za snahu ale nejde to Link to comment Share on other sites More sharing options...
Dotaz
Guest [*LoNg*]LiFe
new Text:nwm[MAX_PLAYERS];
ongamemodeinit
onplayerconect
public
problem je vtom ze ked pridem na server tak mi nejdu povolania a spawni pls help velmi
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