JOSEFKAT 1 Odesláno: 16. Únor, 2015 Share Odesláno: 16. Únor, 2015 dobrý den mam mensi problém a to když dám /zkusenosti tak to hracovi nic neprida QCMD:zkusenosti(){ LEVEL(5); if(isnull(params)) return SCM(playerid,-1,"Použi: /zkusenosti ID"); new id = strval(params); if(!IsPlayerConnected(id)) return SCM(playerid,-1,"Hráč nieje pripojený"); SCMTAF(ADMIN_COLOR,"Administrátor %s dal hráčovy %s 10 skúseností z každého povolania",Jmeno(playerid),Jmeno(id)); PoliciaZK[playerid] += 10; MafiaZK[playerid] += 10; VojakZK[playerid] += 10; VodicZK[playerid] += 10; LetecZK[playerid] += 10; return true; Link to comment Share on other sites More sharing options...
0 Valtys 2 Odesláno: 16. Únor, 2015 Share Odesláno: 16. Únor, 2015 co když uděláš: PoliciaZK[playerid] = PoliciaZK[playerid] + 10; MafiaZK[playerid] = MafiaZK[playerid] + 10; VojakZK[playerid] = ...To by mohlo jít, mě to takhle funguje Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 16. Únor, 2015 Author Share Odesláno: 16. Únor, 2015 zkusim Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 16. Únor, 2015 Share Odesláno: 16. Únor, 2015 co když uděláš: PoliciaZK[playerid] = PoliciaZK[playerid] + 10; MafiaZK[playerid] = MafiaZK[playerid] + 10; VojakZK[playerid] = ... To by mohlo jít, mě to takhle funguje To je úplně to samé, jen to co jsi napsal ty je horší pro procesor. Místo playerid v poli u zkušeností nahraď to pole tím id, ty vlastně ty zkušenosti přičítáš sobě. Link to comment Share on other sites More sharing options...
0 JOSEFKAT 1 Odesláno: 16. Únor, 2015 Author Share Odesláno: 16. Únor, 2015 VojakZK[id] takle ? Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 16. Únor, 2015 Share Odesláno: 16. Únor, 2015 Hmmm nevím, běž to zjistit Link to comment Share on other sites More sharing options...
Dotaz
JOSEFKAT 1
Link to comment
Share on other sites
5 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