[Ajuda] error 025: function heading differs from prototype e error 021: symbol already defined: "GetPlayerSpeed"
#1

Код:
C:\Users\Shum\Desktop\Server 0.3e\pawno\include\F_Streamer.inc(28) : warning 201: redefinition of constant/macro (symbol "F_MAX_OBJECTS")
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(10435) : error 025: function heading differs from prototype
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(10436) : error 021: symbol already defined: "GetPlayerSpeed"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(65004) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Aparecem esses erros no meu GM, quando fui dar uma atualizada nele...

Linhas:
pawn Код:
stock GetPlayerSpeed(playerid,bool:vel) //Linha 10435
{ //Linha 10436
    new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
    if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
    rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
    return vel?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
Reply
#2

Creio que nгo...
O GetPlayerSpeed sу foi encontrado na stock e em algumas publics...
Reply
#3

Desculpem o double post, mas estou desesperado com esses erros, jб arranquei um deles, sу que me aparecem outros 10 erros, e tб irritando...

pawn Код:
C:\Users\Shum\Desktop\Server 0.3e\pawno\include\F_Streamer.inc(28) : warning 201: redefinition of constant/macro (symbol "F_MAX_OBJECTS")
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(23) : error 021: symbol already defined: "NameTimer"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4143) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4432) : error 017: undefined symbol "LSR_PlayerConnect"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(10435) : error 025: function heading differs from prototype
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(10436) : error 021: symbol already defined: "GetPlayerSpeed"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(62717) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(62767) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(62817) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(65004) : warning 202: number of arguments does not match definition
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(72287) : error 021: symbol already defined: "strtok"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(72302) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.
Acho que o que tб acarretando isso tudo й a F_Streamer, sу que nгo sei adaptar a F_Streamer para a Streamer... Sу sei o F_CreateObject > CreateDynamicObject, mas nгo sei como 'converter' o resto...
Reply
#4

Retira uma das stocks do strtok, GetPlayerSpeed, NameTimer e atualiza suas includes pras do 0.3e.

E tambйm coloca isso no topo do mode:
new LSR_PlayerConnect[MAX_PLAYERS];
Se dar erro tenta por
new bool:LSR_PlayerConnect[MAX_PLAYERS];
Se persistir posta os erros.
Reply
#5

Quote:
Originally Posted by Kuddy
Посмотреть сообщение
Retira uma das stocks do strtok, GetPlayerSpeed, NameTimer e atualiza suas includes pras do 0.3e.

E tambйm coloca isso no topo do mode:
new LSR_PlayerConnect[MAX_PLAYERS];
Se dar erro tenta por
new bool:LSR_PlayerConnect[MAX_PLAYERS];
Se persistir posta os erros.
Isso faзa o que Kuddy disse. E se continuar o erro GetPlayerSpeed, й por que em alguma include tem GetPlayerSpeed jб definido.
Reply
#6

Код:
C:\Users\Shum\Desktop\Server 0.3e\pawno\include\F_Streamer.inc(28) : warning 201: redefinition of constant/macro (symbol "F_MAX_OBJECTS")
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4146) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4435) : error 012: invalid function call, not a valid address
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4435) : warning 215: expression has no effect
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4435) : error 001: expected token: ";", but found ")"
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4435) : error 029: invalid expression, assumed zero
C:\Users\Shum\Downloads\gamemode brc\gamemodes\btl00.pwn(4435) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Linhas:
pawn Код:
public OnPlayerConnect(playerid)
{
if(strfind(PlayerName(playerid), "fusion", true) != -1) return CrasharPlayer(playerid);
LSR_PlayerConnect(playerid); //Linha 4435
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
gActivePlayers[playerid]++;
numplayers++;
forum23[playerid] = 1;
mensagetdvip = 0;
new arquivobug[256];
format(arquivobug,sizeof(arquivobug),"/Banidos/%s.ini",pNome(playerid));
if(fexist(arquivobug))
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    SendClientMessage(playerid,0xFF8000AA,"Aperte Crtl para Ligar o farol");
    if (LightPwr[vehicleid] == 0)
    {
        new panels,doors,lights,tires;
        GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
        UpdateVehicleDamageStatus(vehicleid, panels, doors, 5, tires);
    }
    else
    {
        new panels,doors,lights,tires;
        GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
        UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
    }
     RemovePlayerAttachedObject(playerid, 4); //Linha 4146
EDIT: Todas includes atualizadas.
Reply
#7

pawn Код:
LSR_PlayerConnect(playerid); //Linha 4435
Mude para :
pawn Код:
LSR_PlayerConnect[playerid];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)