[AJUDA] erro simples PAWN
#1

Alguen me diz onde estб errado por favor !

pawn Код:
#include <a_samp>

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" ONDE ESTA O ERRO ? *-* ");
        print("--------------------------------------\n");
 return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/arena", cmdtext, true) == 0)
{
        SetPlayerInterior(playerid, 10);//Id do interior
        SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);//coordenada do interior
    }
    return 1;
}

public OnGameModeInit()
{
CreateObject(4182, 837.20001220703, -1996.5999755859, 12.10000038147, 0, 0, 0);
return 1;
}
erro:
pawn Код:
C:\Users\User\Desktop\apagar.pwn(8) : warning 217: loose indentation
C:\Users\User\Desktop\apagar.pwn(16) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Alguen me ajuda !!
Reply
#2

Tenta ae :

pawn Код:
#include <a_samp>

public OnFilterScriptInit()
{
    CreateObject(4182, 837.20001220703, -1996.5999755859, 12.10000038147, 0, 0, 0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/arena", cmdtext, true) == 0)
    {
        SetPlayerInterior(playerid, 10);//Id do interior
        SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);//coordenada do interior
    }
    return 1;
}
Reply
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/arena", cmdtext, true) == 0)
{
        SetPlayerInterior(playerid, 10);//Id do interior
        SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);//coordenada do interior
    }
    return 1;
  }
}

Tenta
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/arena", cmdtext, true) == 0)
{
        SetPlayerInterior(playerid, 10);//Id do interior
        SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);//coordenada do interior
    }
    return 1;
  }
}

Tenta
Reply
#5

podia dizer qual e a linha 16?
Reply
#6

Troll Face me ajudo valew !
+rep pra ti !
Reply
#7

E so Aperta na Estrelinha Embaixo do Minha Foto E Pliz To aqui pra ajudar !
Reply
#8

pawn Код:
#include <a_samp>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" ONDE ESTA O ERRO ? *-* ");
    print("--------------------------------------\n");
    CreateObject(4182, 837.20001220703, -1996.5999755859, 12.10000038147, 0, 0, 0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/arena", cmdtext, true) == 0)
{
    SetPlayerInterior(playerid, 10);//Id do interior
    SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);//coordenada do interior
    }
    return 1;
}
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)