[Ajuda] 1 Warning
#3

Quote:
Originally Posted by Cauezin
View Post
Exemplo

PHP Code:
stock batata(batata1 batata2batata3
Errado :

PHP Code:
batata(valordabatata1valordabatata1valordabatata1valordabatata4); 
Certo:

PHP Code:
batata(valordabatata1valordabatata2valordabatata3); 
Vocк estб usando mais argumentos do que anteriormente definidos, pelo menos й isso que eu acho...
sera que tem alguma coisa a ver com essa stock?
PHP Code:
stock CreateDroppedItem(ItemAmountFloat:gPosXFloat:gPosYFloat:gPosZ)
{
    new 
MAX_OBJ+1;
    for(new 
0MAX_OBJa++)
    {
        if(
dItemData[a][ObjtPos][0] == 0.0)
        {
            
a;
            break;
        }
    }
    if(
MAX_OBJ) return;
    
dItemData[f][droptTimer] = gettime() + (30*60);//30 minutos para o item sumir
    
dItemData[f][ObjtData][0] = Item;
    
dItemData[f][ObjtData][1] = Amount;
    
dItemData[f][ObjtPos][0] = gPosX;
    
dItemData[f][ObjtPos][1] = gPosY;
    
dItemData[f][ObjtPos][2] = gPosZ;
    
dItemData[f][ObjtID] = CreateDynamicObject(ItemdItemData[f][ObjtPos][0], dItemData[f][ObjtPos][1], dItemData[f][ObjtPos][2]-193.7120.0random(360), -1, -1, -180.0);
    new 
buffer[50];
    
format(buffersizeof buffer"Item: %s\nUnidade(s): %d"NomeItemID(dItemData[f][ObjtData][0]), dItemData[f][ObjtData][1]);
     
dItemData[f][textt3d] = CreateDynamic3DTextLabel(buffer0xAAAAAAAAdItemData[f][ObjtPos][0], dItemData[f][ObjtPos][1], dItemData[f][ObjtPos][2]-115.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0, -1, -1, -180.0);
    return;

tentei adicionar o Item2 nela deu varios erros
Reply


Messages In This Thread
1 Warning - by igor97m - 09.05.2018, 23:56
Re: 1 Warning - by Cauezin - 10.05.2018, 00:02
Re: 1 Warning - by igor97m - 10.05.2018, 00:13
Re: 1 Warning - by Cauezin - 10.05.2018, 00:19
Re: 1 Warning - by igor97m - 10.05.2018, 00:21
Re: 1 Warning - by FerrariL - 10.05.2018, 00:27
Re: 1 Warning - by igor97m - 10.05.2018, 00:34
Re: 1 Warning - by FerrariL - 10.05.2018, 00:38
Re: 1 Warning - by igor97m - 10.05.2018, 00:43
Re: 1 Warning - by FerrariL - 10.05.2018, 00:48
Re: 1 Warning - by igor97m - 10.05.2018, 01:56

Forum Jump:


Users browsing this thread: 2 Guest(s)