[Ajuda] Erro ao compilar
#1

Slv galera esto com alguns erros ao compilar o Game Mode

pwn(14958 ) : error 010: invalid function or declaration
pwn(14958 ) : error 004: function "__OnDefaultParseFile" is not implemented
pwn(14959) : error 001: expected token: "-identifier-", but found "forward"
pwn(14961) : error 010: invalid function or declaration

PHP код:
forward OnDefaultParseFile(extraidvalue [], key [], tag [], file []);
public 
OnDefaultParseFile(extraidvalue [], key [], tag [], file [])
{
     return 
printf("OnDefaultParseFile(%d, %s, %s, %s, %s)"extraidvaluekeytagfile);
    } 
Reply
#2

pawn Код:
forward __OnDefaultParseFile(extraid, value [], key [], tag [], file []);
public __OnDefaultParseFile(extraid, value [], key [], tag [], file [])
{
     return printf("OnDefaultParseFile(%d, %s, %s, %s, %s)", extraid, value, key, tag, file);
}
Reply
#3

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
forward __OnDefaultParseFile(extraid, value [], key [], tag [], file []);
public __OnDefaultParseFile(extraid, value [], key [], tag [], file [])
{
     return printf("OnDefaultParseFile(%d, %s, %s, %s, %s)", extraid, value, key, tag, file);
}
obg vlw
Reply
#4

Novos erros:

pwn(15411) : error 012: invalid function call, not a valid address
pwn(15411) : error 001: expected token: ";", but found ")"
pwn(15411) : error 029: invalid expression, assumed zero
pwn(15411) : fatal error 107: too many error messages on one line

PHP код:
stock ReverseSpectate(playerid)
{
    if(
ConnectedPlayers(playerid) == 2) { StopSpectate(playerid); return 1; }
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && Player[playerid][gSpectateID] != INVALID_PLAYER_ID) {
            for(new 
x=Player[playerid][gSpectateID]-1x>=0x--) {
                if(
== 0) { MAX_PLAYERS; }
                if(
IsPlayerConnected(x) && != playerid) {
                                if(
GetPlayerState(x) == PLAYER_STATE_SPECTATING && Player[x][gSpectateID] != INVALID_PLAYER_ID ||
                                        (
GetPlayerState(x) != && GetPlayerState(x) != && GetPlayerState(x) != 3))
                                {
                                        continue;
                                }
                                else {
                                        
StartSpectate(playeridx);
                                        break;
                                }
                        }
                }
        }
    return 
1;

Reply
#5

pawn Код:
stock ReverseSpectate(playerid)
{
    if(ConnectedPlayers(playerid) == 2)
        return StopSpectate(playerid);
       
    if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && Player[playerid][gSpectateID] != INVALID_PLAYER_ID)
    {
        for(new x=Player[playerid][gSpectateID]-1; x>=0; x--)
        {
            if(x == 0)
                x = MAX_PLAYERS;  
            if(IsPlayerConnected(x) && x != playerid)
            {
                if((GetPlayerState(x) == PLAYER_STATE_SPECTATING && Player[x][gSpectateID] != INVALID_PLAYER_ID) ||
                    (GetPlayerState(x) != 1 && GetPlayerState(x) != 2 && GetPlayerState(x) != 3))
                {
                    continue;
                }
                else
                    StartSpectate(playerid, x), break;
            }
        }
    }
    return 1;
}
proxima mande a linha em especifico.
Reply
#6

PT o erro ainda permanece

A linha 15411 й essa aqui \/
PHP код:
if(ConnectedPlayers() == 2) { StopSpectate(playerid); return 1; } 
Reply
#7

ALGUEM PODE AJUDAR

Quote:
Originally Posted by cicinho
Посмотреть сообщение
PT o erro ainda permanece

A linha 15411 й essa aqui \/
PHP код:
if(ConnectedPlayers() == 2) { StopSpectate(playerid); return 1; } 
Reply
#8

talvez

pawn Код:
if(ConnectedPlayers == 2) { StopSpectate(playerid); return 1; }
procure na gm por ConnectedPlayers para saber se й funcao ou variavel
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)