Jump to content
  • 0

Ajutor Comanda ZCMD


BoBBiTa

Question

Problema intalnita (descriere): Am incercat sa compilez dar imi da o eroare la linia 138 ( mai exact la CMD:kill(playerid, params[])
Ero(area / rile) / warning-(ul / urile): error 029: invalid expression, assumed zero
Liniile de cod / sursa / script-ul:

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  CMD:kill(playerid, params[])
  {
  SetPlayerHealth(playerid,0);
  new name [MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
  GetPlayerName(playerid,name,sizeof(name));
  format(string,sizeof(string), "%s S-a Sinucis!",name);
  SendClientMessageToAll(COLOR_LIGHTRED, string);
  return 1;
  }

Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Desigur.. am incercat sa schimb niste acolade pe acolo si nu am reusit asa ca am venit sa va cer ajutorul

Edited by bobita

// Desenul meu animat 
// Alte episoade aici: 
https://www.youtube.com/channel/UCF2kY1CzhHI_PCyV5LprQ1w/videos

 

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Salut incearca asa

CMD:kill(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), " %s S-a sinucis.", name);
            SendClientMessageToAll(COLOR_LIGHTRED, string);
            SetPlayerHealth(playerid,0);
        }
        return 1;
    }
  • Upvote 1
Link to comment
Share on other sites

  • 0

Tot la fel face... tot aceiasi problema la linia aia, CMD:kill, am pus cum ai aratat tu si mentionez ca am acolo sus #include zcmd,  e posibil sa fie de la linia :

public OnPlayerCommandPerformed(playerid, cmdtext[], success) , ca normal era public OnPlayerCommandText(playerid, cmdtext[]) ( am modificat ca am vazut intr-un tutorial cum se lucreaza cu ZCMD).
 

// Desenul meu animat 
// Alte episoade aici: 
https://www.youtube.com/channel/UCF2kY1CzhHI_PCyV5LprQ1w/videos

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.