[Ajuda] ajuda
#1

Galera me ajudem please

Bom , o /depositarfazenda do meu sv ta bugado

o /depositarempresa vai de boa agr o da fazenda nao , ja tentei arrumar mais n to conseguindo


Code: /depositarempresa

PHP код:
    CMD:depositarempresa(playeridparams[])
    {
            new 
borse PlayerInfo[playerid][pPbiskey];
            if (
borse == 255)
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo tem uma empresa.");
                return 
true;
            }
            new 
quant;
            new 
string[128];
            if(
sscanf(params"d"quant))
            {
                if (
borse >= 100 && borse 200)
                {
                    
format(stringsizeof(string), "  Vocк tem R$%d de saldo em sua empresa."SBizzInfo[borse-100][sbTill]);
                    
SendClientMessage(playeridCOLOR_GRAD3string);
                }
                if (
borse 100)
                {
                    
format(stringsizeof(string), "  Vocк tem R$%d de saldo em sua empresa."BizzInfo[borse][bTill]);
                    
SendClientMessage(playeridCOLOR_GRAD3string);
                }
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /depositarempresa [quantidade]");
                return 
true;
            }
            new 
cashdeposit quant;
            if (
cashdeposit GetPlayerMoney(playerid) || cashdeposit 1)
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo tem tanto");
                return 
true;
            }
            if (
borse >= 100)
            {
                if(!
PlayerToPoint(100playerid,SBizzInfo[borse-100][sbEntranceX],SBizzInfo[borse-100][sbEntranceY],SBizzInfo[borse-100][sbEntranceZ]))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"   Vocк estб longe de sua empresa");
                    return 
true;
                }
                else
                {
                    
GiveDinheiro(playerid,-cashdeposit);
                    
SBizzInfo[borse-100][sbTill] += cashdeposit;
                    
format(stringsizeof(string), "  Vocк guardou R$%d no cofre de sua empresa. O saldo de sua empresa: R$%d"cashdeposit,SBizzInfo[borse-100][sbTill]);
                    
SendClientMessage(playeridCOLOR_YELLOWstring);
                    
SalvarSEmpresa(borse-100);
                }
            }
            if (
borse 100)
            {
                if (!
PlayerToPoint(100playerid,BizzInfo[borse][bExitX],BizzInfo[borse][bExitY],BizzInfo[borse][bExitZ]))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"   Vocк estб longe de sua empresa");
                    return 
true;
                }
                else
                {
                    
GiveDinheiro(playerid,-cashdeposit);
                    
BizzInfo[borse][bTill] += cashdeposit;
                    
format(stringsizeof(string), "  Voce depositou R$%d no cofre de sua empresa Total: R$%d"cashdeposit,BizzInfo[borse][bTill]);
                    
SendClientMessage(playeridCOLOR_YELLOWstring);
                    
SalvarEmpresa(borse);
                }
            }
            
Atualizar3Dtexts();
            return 
true;
    } 

Code: /depositarfazenda


PHP код:
    CMD:depositarfazenda(playeridparams[])
    {
            new 
borse PlayerInfo[playerid][pPFazkey];
            if (
borse == 255)
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo tem uma Fazenda.");
                return 
true;
            }
            new 
quant;
            new 
string[128];
            if(
sscanf(params"d"quant))
            {
                if (
borse 255)
                {
                    
format(stringsizeof(string), "  Vocк tem R$%d de saldo em sua Fazenda."FBizzInfo[borse][fbTill]);
                    
SendClientMessage(playeridCOLOR_GRAD3string);
                }
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /depositarfazenda [quantidade]");
                return 
true;
            }
            new 
cashdeposit quant;
            if (
cashdeposit GetPlayerMoney(playerid) || cashdeposit 1)
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo tem tanto");
                return 
true;
            }
            if (
borse 255)
            {
                if(!
PlayerToPoint(100playerid,FBizzInfo[borse-200][fbEntranceX],FBizzInfo[borse-200][fbEntranceY],FBizzInfo[borse-200][fbEntranceZ]))
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"   Vocк estб longe de sua fazenda");
                    return 
true;
                }
                else
                {
                    
GiveDinheiro(playerid,-cashdeposit);
                    
FBizzInfo[borse][fbTill] += cashdeposit;
                    
format(stringsizeof(string), "  Vocк guardou R$%d no cofre de sua fazenda. O saldo de sua fazenda: R$%d"cashdeposit,FBizzInfo[borse-200][fbTill]);
                    
SendClientMessage(playeridCOLOR_YELLOWstring);
                    
SalvarFEmpresa(borse);
                }
            }
            
Atualizar3Dtexts();
            return 
true;
    } 
Ajuda ai galera please , REP+
Reply
#2

onde estб o erro? quando compila ou apenas o cmd nгo funciona?
Reply
#3

descreva esse "bug" para a comunidade poder te ajudar a resolver!
Reply
#4

tipo , se eu colocar apenas /depositarfazenda , ai vai tranquilo
Mais se eu colocar /depositarfazenda [preзo] ai fala q o cmd nao existe
Reply
#5

Alguem ajuda ?
Reply
#6

PHP код:
if(sscanf(params"d"quant))
    return 
SendClientMessage(playeridCOLOR_GRAD2"USE: /depositarfazenda [quantidade]"); 
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)