Jump to content
  • 0

pomoc nepřičítají se zkušenosti


JOSEFKAT

Dotaz

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

5 odpovědí na tuto otázku

Recommended Posts

  • 0

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

  • 0

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...