Guest pomocnik Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 Dobrý Den, když nastavím někomu SetPlayerScore(playerid,50); tak po stlačení TABU se score neobjeví. Děkuju za pomoc Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 OnPlayerUpdate: SetPlayerScore(playerid, GetPlayerMoney(playerid)); By mělo fachat. EDIT: aha špatně sem to přečetl, omlouvam se Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 Děkuju. -- úte 26. led 2010 20:03:24 -- EDIT: aha špatně sem to přečetl, omlouvam se Link to comment Share on other sites More sharing options...
0 DON 1 Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 Aveste nemělo by to být spíš GivePlayerMoney ? Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 LoL proč by mu to mělo dávat peníze do score ? SetPlayerScore(playerid, GetPlayerMoney(playerid)); // neboli jeho peníze zjistí a dá je jako score ... nebo jak to vysvětlit Link to comment Share on other sites More sharing options...
0 tbx 7 Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 vy jste vsichni chytri zkus cislo dat do "" ale jinak nwm Link to comment Share on other sites More sharing options...
0 DON 1 Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 aha to je score..xD..tak to sorry xD Link to comment Share on other sites More sharing options...
0 zpatecnik 0 Odesláno: 26. Leden, 2010 Share Odesláno: 26. Leden, 2010 vy jste vsichni chytri zkus cislo dat do "" ale jinak nwm genius se projevil Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 LoL proč by mu to mělo dávat peníze do score ?SetPlayerScore(playerid, GetPlayerMoney(playerid)); // neboli jeho peníze zjistí a dá je jako score ... nebo jak to vysvětlit To myslíš tak že SetPlayerScore(playerid, GetPlayerMoney(playerid)); dám do OnPlayerUpdate, a hráč když dostane SetPlayerScore +5 tak v TABu automaticky naskočí Score - 5 ? Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 ono to SetPlayerSkore je nejaky zahadny taky sem ten problem resil ale kdyz sem si to udelal jako promenou a ukazoval skore v promene tak to fungovalo Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Je tu návod jak na proměnou se score? Proměnu bych zvládl ale ostatní ne. Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 proste misto SetPlayerSkore budes pricitat promenou a nekde v timeru das SetPlayerSkore(hrac,promena); je to divny ale je to tak Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Timeru ? neni lepší použít public OnPlayerUpdate ? přes to je to nejlepší, já přes to mam skoro všechno, i tachometr .. Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 pres timer je to lepsi neme to zatezuje OnPlayerUpdate se vyvovala nekolikrat za sekundu zbytecna zatez Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Jak se přičítá proměna? Link to comment Share on other sites More sharing options...
0 Majitel ffredyk 168 Odesláno: 27. Leden, 2010 Majitel Share Odesláno: 27. Leden, 2010 Jak se přičítá proměna? promena += kolik; nebo promena++; ale to pricte o 1 vyse Link to comment Share on other sites More sharing options...
0 -SpiriX23- 0 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 pokud mas score pres timer na 1 vterinu na for a zjistovani/pridavani score a nebo v OnPlayerUpdate to zjistujes na playerid bez foru. co zatezuje vic? vterinovej for nebo vice krat na vterinu OnPlayerUpdate? jde mi hlavne o ten for. Link to comment Share on other sites More sharing options...
0 _Speedy 2 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 OnplayerUpdate funguje asi tak že to prejde každych cca 300ms hrača zisty či je v hre a ak je tak odošle funkciu ... V tomto pripade asi zatažije viac ten cylus for pokial je vnom 500 ... Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Mohl by mě někdo napsat jak to udělat když hráč spustí OnPlayerSpawn aby mu to přičetlo 1 score. Promena "score" a tedy bych to dělal přes promena++; Link to comment Share on other sites More sharing options...
0 _Speedy 2 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Omg tak napr: TvojaFunkcia[playerid]++; Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Takhle to má vypadat? new score[MAX_PLAYERS]; public OnPlayerDeath(playerid) { score[playerid]++; return 1; } public OnPlayerUpdate(playerid) { SetPlayerScore(playerid,score); return 1; } error 035: argument type mismatch (argument 2) Link to comment Share on other sites More sharing options...
0 _Speedy 2 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Omg načo si tam davaš premenu na score ked už maš tuto funkciu integrovanu .. ked chceš pridavať score tak stači Onplayerspawn: SetPlayerScore(playerid,GetPlayerScore(playerid)+1); a tu premenu sy vymaž lebo ty je na 2 veci ŁoŁ ? public OnPlayerDeath(playerid) toto neexistuje cyba ty tam ešte playerid, killerid, reason { score[playerid]++; return 1; } a načo tot chceš použivať ? ked niekto niekho zabije ? Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Mě se score nezobrazuje při stlačení TABu to je hlavní problém. Link to comment Share on other sites More sharing options...
0 _Speedy 2 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Omg ..... Na 100% nemaš v onplayerdeath: if(killerid == INVALID_PLAYER_ID)//........... else//............... a potom sa ty to buguje Link to comment Share on other sites More sharing options...
0 Guest pomocnik Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 Poradí mi někdo? Link to comment Share on other sites More sharing options...
0 undertaker 10 Odesláno: 27. Leden, 2010 Share Odesláno: 27. Leden, 2010 skus mod sftdm a tam je public onplayerdeath skus ho zkopirovat melo by to pak jit Link to comment Share on other sites More sharing options...
Dotaz
Guest pomocnik
Dobrý Den, když nastavím někomu SetPlayerScore(playerid,50); tak po stlačení TABU se score neobjeví. Děkuju za pomoc
Link to comment
Share on other sites
28 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