[AJUDA] qual o erro ?
#1

To criando um simples teleport e ta dando erro ?? nao consigo arumar ele , alguen ai me ajuda !!

pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Drop da morte ");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

new playername[MAX_PLAYER_NAME];
    if (strcmp("/drop", cmdtext, true, 10) == 0)
    {
        new string[68];
        SetPlayerPos(playerid, 3747.099609375,-2190.5,561.09997558594);
        SetPlayerInterior(playerid,0);
        ResetPlayerWeapons(playerid);
        SetPlayerVirtualWorld(playerid,0);
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string,sizeof(string)," %s Foi para o /drop  (/drop)",playername);
        SendClientMessageToAll(0x15FF00AA,string);
        return 1;
    }
o erro !

Quote:

C:\Users\User\Desktop\lokoooooo.pwn(2 : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

por favor alguen ajuda aew !
Reply
#2

Vocк nгo colocou as chaves!
pawn Код:
#include <a_samp>


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Drop da morte ");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

new playername[MAX_PLAYER_NAME];
{
    if (strcmp("/drop", cmdtext, true, 10) == 0)
    {
        new string[68];
        SetPlayerPos(playerid, 3747.099609375,-2190.5,561.09997558594);
        SetPlayerInterior(playerid,0);
        ResetPlayerWeapons(playerid);
        SetPlayerVirtualWorld(playerid,0);
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string,sizeof(string)," %s Foi para o /drop  (/drop)",playername);
        SendClientMessageToAll(0x15FF00AA,string);
        return 1;
    }
    return 0;
}
@edit

Vocк tambйm havia esquecido de retirar os #if, #else e #endif

Toda vez que vocк iniciar um gamemode/fs й bom deletar isso e apagar as callbacks nгo ъteis tb.
Por exemplo: Nгo vou utilisar OnGameModeInit em um FS, nem OnFilterScriptInit em um gm

Espero ter ajudado roubei a frase do rjjjj hahaha
Reply
#3

rarara valew cara , vo cada vez mais apredendo os codigos PAWN com vcs do forum agradecido manow !
Reply
#4

Quote:
Originally Posted by RNT
Посмотреть сообщение
rarara valew cara , vo cada vez mais apredendo os codigos PAWN com vcs do forum agradecido manow !
Ok, se precisar de algo й sу postar, tamo aqui pra isso.

Agora vou dormir, amanhг as 12:00 (jб) to online
Reply
#5

Sim certo o que vc me disse mais continua dando o seguinte erro !

Quote:

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Drop da morte ");
print("--------------------------------------\n");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

new playername[MAX_PLAYER_NAME];
{
if (strcmp("/drop", cmdtext, true, 10) == 0)
{
new string[68];
SetPlayerPos(playerid, 3747.099609375,-2190.5,561.09997558594);
SetPlayerInterior(playerid,0);
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid,0);
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string)," %s Foi para o /drop (/drop)",playername);
SendClientMessageToAll(0x15FF00AA,string);
return 1;
}
return 0;
}

erro

Quote:

C:\Users\User\Desktop\lokoooooo.pwn(31) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#6

Quote:
Originally Posted by -FFS-iBauss
Посмотреть сообщение
Vocк nгo colocou as chaves!
pawn Код:
#include <a_samp>


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Drop da morte ");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])

new playername[MAX_PLAYER_NAME];
{
    if (strcmp("/drop", cmdtext, true, 10) == 0)
    {
        new string[68];
        SetPlayerPos(playerid, 3747.099609375,-2190.5,561.09997558594);
        SetPlayerInterior(playerid,0);
        ResetPlayerWeapons(playerid);
        SetPlayerVirtualWorld(playerid,0);
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string,sizeof(string)," %s Foi para o /drop  (/drop)",playername);
        SendClientMessageToAll(0x15FF00AA,string);
        return 1;
    }
    return 0;
}
@edit

Vocк tambйm havia esquecido de retirar os #if, #else e #endif

Toda vez que vocк iniciar um gamemode/fs й bom deletar isso e apagar as callbacks nгo ъteis tb.
Por exemplo: Nгo vou utilisar OnGameModeInit em um FS, nem OnFilterScriptInit em um gm

Espero ter ajudado roubei a frase do rjjjj hahaha
WTF?!

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/drop", cmdtext, true, 10) == 0)
    {
        new string[68], playername[MAX_PLAYER_NAME];
        SetPlayerPos(playerid, 3747.099609375,-2190.5,561.09997558594);
        SetPlayerInterior(playerid,0);
        ResetPlayerWeapons(playerid);
        SetPlayerVirtualWorld(playerid,0);
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string,sizeof(string)," %s Foi para o /drop  (/drop)",playername);
        SendClientMessageToAll(0x15FF00AA,string);
        return 1;
    }
    return 0;
}
Reply
#7

lol, falta de atenзгo mata hein, eu sу podia tar durmindo -.-
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])

new playername[MAX_PLAYER_NAME];
{
tenso sakpoak
pawn Код:
#include <a_samp>


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Drop da morte ");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new playername[MAX_PLAYER_NAME];
    if (strcmp("/drop", cmdtext, true, 10) == 0)
    {
        new string[68];
        SetPlayerPos(playerid, 3747.099609375,-2190.5,561.09997558594);
        SetPlayerInterior(playerid,0);
        ResetPlayerWeapons(playerid);
        SetPlayerVirtualWorld(playerid,0);
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string,sizeof(string)," %s Foi para o /drop  (/drop)",playername);
        SendClientMessageToAll(0x15FF00AA,string);
        return 1;
    }
    return 0;
}
Reply
#8

ai coloca assim que vai de boa

pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
main()
{
    print("\n--------------------------------------");
    print(" Drop da morte ");
    print("--------------------------------------\n");
}
    return 1;
}

#else
#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/drop", cmdtext, true, 10) == 0)
    {
    SetPlayerPos(playerid,3747.099609375,-2190.5,561.09997558594);
        SetPlayerInterior(playerid,0);
        ResetPlayerWeapons(playerid);
    new string[380];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), " %s Foi para o Drop Usando  /drop", pName);
    SendClientMessageToAll(0x008000AA, string);
    return 1;
    }
    return 0;
}
espero ter ajudado
vlw
Reply
#9

valew galera !
Reply
#10

pawn Код:
#endif
no fim do gm .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)