Jump to content
  • 0

ajutor comanda


andreiicbr

Question

Problema intalnita (descriere):salut , as dori si eu la comanda aceasta /sellfish o pot da doar in businessul id 1 eu vreau sa o dau si in id 29
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):

 

CMD:sellfish(playerid, params[])

{
if(GetPlayerVirtualWorld(playerid)-BUSINESS_VIRTUAL_WORLD >= 1)
  {
   new businessID = InBizz[playerid];
   if(businessVariables[businessID][bType] == 1)
   {
       if(playerVariables[playerid][pFishing] == 1)
       {
           if(playerVariables[playerid][pFish] > 0)
           {
            new string[256];
            format(string,256,"Ai vandut pestele pentru $%s.",NumberFormat(playerVariables[playerid][pFishValue]));
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
playerVariables[playerid][pFish] = 0; 
playerVariables[playerid][pFishing] = 0; 
playerVariables[playerid][pMoney] += playerVariables[playerid][pFishValue];
           }
       }
   }
}
return 1;
}

Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:da dar nu a mers

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

CMD:sellfish(playerid, params[])
{
if(GetPlayerVirtualWorld(playerid)-BUSINESS_VIRTUAL_WORLD >= 1)
  {
 new businessID = InBizz[playerid];
 if(businessVariables[businessID][bType] == 1 || businessVariables[businessID][bType] == 29)
 {
 if(playerVariables[playerid][pFishing] == 1)
 {
 if(playerVariables[playerid][pFish] > 0)
 {
  new string[256];
  format(string,256,"Ai vandut pestele pentru $%s.",NumberFormat(playerVariables[playerid][pFishValue]));
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
playerVariables[playerid][pFish] = 0; 
playerVariables[playerid][pFishing] = 0; 
playerVariables[playerid][pMoney] += playerVariables[playerid][pFishValue];
 }
 }
 }
}
return 1;
}
Edited by Adrian_Petre

 

 

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.