[Ajuda] invalid function or declaration
#1

pawn Код:
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(166) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(168) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(172) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(177) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.

linhas:
pawn Код:
if (strcmp(cmd, "/elevador2", true) == 0)
    {
       if(PlayerToPoint(2.0, playerid, 1912.76464844,-1356.61962891,13.28764534)) //linha 168 comeзa aki
            {
                SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
            }
            if(PlayerToPoint(2.0, playerid, 1910.75439453,-1356.62219238,13.82241058))
            {
                SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
            }
        }
        return 1;
    } // 178 termina aki
Reply
#2

Tenta isto:

PHP код:
if (strcmp(cmd"/elevador2"true) == 0)
{
    if(
PlayerToPoint(2.0playerid1912.76464844,-1356.61962891,13.28764534))
    {
        
SetPlayerPos(playerid1910.75439453,-1356.62219238,13.82241058);
        return 
1;
    }
    if(
PlayerToPoint(2.0playerid1910.75439453,-1356.62219238,13.82241058))
    {
        
SetPlayerPos(playerid1912.76464844,-1356.61962891,13.28764534);
        return 
1;
    }
    return 
1;

Ou isto:

PHP код:
if (strcmp(cmd"/elevador2"true) == 0)
{
    if(
IsPlayerInRangeOfPoint(playerid,2.01912.76464844,-1356.61962891,13.28764534))
    {
        
SetPlayerPos(playerid1910.75439453,-1356.62219238,13.82241058);
        return 
1;
    }
    if(
IsPlayerInRangeOfPoint(playerid,2.01910.75439453,-1356.62219238,13.82241058))
    {
        
SetPlayerPos(playerid1912.76464844,-1356.61962891,13.28764534);
        return 
1;
    }
    return 
1;

Reply
#3

o erro tirou agora aparece essas duas warnings

pawn Код:
C:\Documents and Settings\Wallace\Meus documentos\GM BSG\filterscripts\corrida.pwn(142) : warning 206: redundant test: constant expression is non-zero
C:\Documents and Settings\Wallace\Meus documentos\GM BSG\filterscripts\corrida.pwn(147) : warning 206: redundant test: constant expression is non-zero
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#4

ops desculpae ae esqueci das linhas as linhas sгo estas
pawn Код:
if(PlayerToPoint(2.0, playerid, 1912.76464844,-1356.61962891,13.28764534)) //142
    {
        SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
        return 1;
    }
    if(PlayerToPoint(2.0, playerid, 1910.75439453,-1356.62219238,13.82241058)) //147
    {
        SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
        return 1;
    }
Reply
#5

PHP код:
    if(IsPlayerInRangeOfPoint(playerid,2.01912.76464844,-1356.61962891,13.28764534))
    {
        
SetPlayerPos(playerid1910.75439453,-1356.62219238,13.82241058);
        return 
1;
    }
    if(
IsPlayerInRangeOfPoint(playerid,2.01910.75439453,-1356.62219238,13.82241058))
    {
        
SetPlayerPos(playerid1912.76464844,-1356.61962891,13.28764534);
        return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)