[AJUDA] 2 erros ;s
#1

Galera ajuda com esses 2 errinhos aqui? nгo sei pq do nada eles aparecerгo ;s

erros:
PHP код:
(linha:18785error 025: function heading differs from prototype
(linha18786error 025: function heading differs from prototype 
Linhas:
PHP код:
(linha:18785)  forward CriarVeiculo(modelidFloat:xFloat:yFloat:zFloat:anglecolor1color2respawn_delay);
(
linha18786) public CriarVeiculo(modelidFloat:xFloat:yFloat:zFloat:anglecolor1color2respawn_delay)
{
    
CreateVehicle(modelidxyzanglecolor1color260000);
    return 
1;

Ela tava sem o return mais nao tinha nem warning nelas, fui tentar colocar um sistema de carros no gm que eu tirei do meu fs, so que ai comeзo a dar esse erro, ai tirei o sistema e continua ;s
Reply
#2

pawn Код:
stock CriarVeiculo(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
{
    #pragma unused respawn_delay
    CreateVehicle(modelid, x, y, z, angle, color1, color2, 60000);
    return 1;
}
...
Reply
#3

Nгo sei o erro
Use [pawn] em vez de [php]
Tente:

pawn Код:
forward CriarVeiculoEx(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
public CriarVeiculoEx(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
{
    return CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay); ;
}
Reply
#4

Quote:
Originally Posted by TheGarfield
Посмотреть сообщение
pawn Код:
stock CriarVeiculo(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
{
    #pragma unused respawn_delay
    CreateVehicle(modelid, x, y, z, angle, color1, color2, 60000);
    return 1;
}
...
Quote:
Originally Posted by Dr_Pawno
Посмотреть сообщение
Nгo sei o erro
Use [pawn] em vez de [php]
Tente:

pawn Код:
forward CriarVeiculoEx(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
public CriarVeiculoEx(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
{
    return CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay); ;
}
Vlws ai deu certo aqui
Reply
#5

PHP код:
#define CriarVeiculo(%0,%1,%2,%3,%4,%5,%6,%7) CreateVehicle(%0,%1,%2,%3,%4,%5,%6,60000) 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)