RoBiK 3 Odesláno: 2. Leden, 2016 Share Odesláno: 2. Leden, 2016 Kedže nikto mi na predchadzajucom temate neodpisuje tak to pišem sem: poviete mi kedy sa vykona public OnPlayerUpdate ? diky Link to comment Share on other sites More sharing options...
0 Quiter 99 Odesláno: 2. Leden, 2016 Share Odesláno: 2. Leden, 2016 Stále! Resp. tuším raz za 200 ms + keď sa s hráčom niečo deje (zmena pozície, kludne aj o milimetre a pod.) Link to comment Share on other sites More sharing options...
0 RoBiK 3 Odesláno: 2. Leden, 2016 Author Share Odesláno: 2. Leden, 2016 aha diky Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 3. Leden, 2016 Share Odesláno: 3. Leden, 2016 (upraveno) OnPlayerUpdate se vyvola vzdy kdyz server obdrzi od clienta packety (update). Takze se vyvolava tak casto jak je jeho ping +-. Ovsem pokud hru shodi do vinu tak se nevyvolava, protoze kdyz mas hru ve vinu tak to neposila packety serveru Edited 3. Leden, 2016 by ATomas Link to comment Share on other sites More sharing options...
0 RoBiK 3 Odesláno: 3. Leden, 2016 Author Share Odesláno: 3. Leden, 2016 aha a neviete prečo mi toto nefunguje ? public OnPlayerUpdate(playerid) { if(IsPlayerAdmin(playerid)){ new str[26];new meno[26]; GetPlayerName(playerid, meno, 26); format(str, 26, "{FF0000}[ ADMIN ]{FFFFFF}s",meno); SetPlayerName(playerid,str); } return 1; } žiadne errory ale proste nefunguje lognem sa za rcon ale nestane sa toto môže to byť tym {FF0000} ? diky Link to comment Share on other sites More sharing options...
0 Lukasz 336 Odesláno: 3. Leden, 2016 Share Odesláno: 3. Leden, 2016 Ne, důvod je zde https://wiki.sa-mp.com/wiki/SetPlayerName Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 3. Leden, 2016 Share Odesláno: 3. Leden, 2016 (upraveno) aha a neviete prečo mi toto nefunguje ? public OnPlayerUpdate(playerid) { if(IsPlayerAdmin(playerid)){ new str[26];new meno[26]; GetPlayerName(playerid, meno, 26); format(str, 26, "{FF0000}[ ADMIN ]{FFFFFF}s",meno); SetPlayerName(playerid,str); } return 1; } žiadne errory ale proste nefunguje lognem sa za rcon ale nestane sa toto môže to byť tym {FF0000} ? diky No ty vole Tak tohle prebiji o 100% pouzivani scanff na prevod stringu na integer :d Edited 3. Leden, 2016 by ATomas 1 Link to comment Share on other sites More sharing options...
Dotaz
RoBiK 3
Kedže nikto mi na predchadzajucom temate neodpisuje tak to pišem sem:
poviete mi kedy sa vykona public OnPlayerUpdate ? diky
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