[Ajuda] Inventario
#1

Quando Eu Pego o Item = Remedio fais 1 flood e lota o inventario

PHP код:
public OnPlayerKeyStateChange(playeridnewkeys) {
    if(
newkeys == KEY_CROUCH) {
        if(
GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return true;
        for(new 
0MAX_SERVER_ITENSi++) {
            if(
mundoItens[i][mItem_ativo] == false) continue;
            if(!
IsPlayerInRangeOfPoint(playerid1.0mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z])) continue;
            
SetPVarInt(playerid"mundoItens_index_ativo"i);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
            
new string[164];
            for(new 
021b++) {
            if(
pInventario[playerid][b][inv_item_ativo] == true) continue;
            
pInventario[playerid][b][inv_item_ativo] = true;
            
mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_ativo] = false;
            
ApplyAnimation(playerid"BOMBER""BOM_PLANT_IN"10000.000000);
            
            switch(
mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_tipo]) {
                case 
ITEM_TIPO_COLETE:
                {
                    
pInventario[playerid][b][inv_coleteStatus] = mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_quantidade];
                    
pInventario[playerid][b][inv_item_index] = mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_index];
                    
DestroyObject(mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_createObject]);
                    
Delete3DTextLabel(mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_text3d]);
                    
SendClientMessage(playerid, -1"Vocк Pegou Um Item ({00BFFF}Colete{FFFFFF}) Em Seu Inventario !");
                }
                case 
ITEM_TIPO_REMEDIO_P:
                {
                    
pInventario[playerid][b][inv_item_index] = mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_index];
                    
DestroyObject(mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_createObject]);
                    
Delete3DTextLabel(mundoItens[GetPVarInt(playerid"mundoItens_index_ativo")][mItem_text3d]);
                    
SendClientMessage(playerid, -1"Vocк Pegou Um Item ({00BFFF}Remedio Pequeno{FFFFFF}) Em Seu Inventario !");
                    break;
                    }
                }
            }
        }
    return 
1;

Reply
#2

Percebi que vocк nгo quer aprender a programar o inventбrio e sim receber os cуdigos e usar como se fosse vocк prуprio quem criou.
Reply
#3

? como assim kra
Reply
#4

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
Percebi que vocк nгo quer aprender a programar o inventбrio e sim receber os cуdigos e usar como se fosse vocк prуprio quem criou.
luan ele quer saber porque acontece isso nгo estб pedindo codigo pronto ... por um lado ele nгo explico direito e por outro vocк tambйm nгo entendeu !!! ;-;
Reply
#5

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
Percebi que vocк nгo quer aprender a programar o inventбrio e sim receber os cуdigos e usar como se fosse vocк prуprio quem criou.
Finalmente alguйm percebeu, se vocк for procurar, ele jб criou mais de 10 tуpicos sу com o tнtulo inventбrio, e quando mandaram ele pesquisar, ele "ameaзou" o cara, bruxo se nгo me engano huasdhuashd.
Reply
#6

thider pesquisar oq vey ? to pedindo ajuda nesse sistema q mandei nao pedi aprenda ler dmr ?
Reply
#7

Jб vi uns 40 tуpico desse cara com o mesmo problema, vou atй tentar ajudar para ele parar de criar tуpicos.

Adc skype lucashenr8 irei te auxiliar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)