[Ajuda] Erro ao copiar '-'
#1

pawn Код:
C:\Users\USER\Desktop\0.3e\filterscripts\tele.pwn(45) : error 030: compound statement not closed at the end of file (started at line 25)
nгo existe linha 45, por que para na 44 x.x

e como nгo sei nada de inglкs e nгo tenho dicionario e como varias pessoas xingam o ****** tradutor
deixei pra vocкs que sabem . '
Reply
#2

Quote:
Originally Posted by OakleyBrasil
Посмотреть сообщение
pawn Код:
C:\Users\USER\Desktop\0.3e\filterscripts\tele.pwn(45) : error 030: compound statement not closed at the end of file (started at line 25)
nгo existe linha 45, por que para na 44 x.x

e como nгo sei nada de inglкs e nгo tenho dicionario e como varias pessoas xingam o ****** tradutor
deixei pra vocкs que sabem . '
Estб faltando alguma chave, se vc postar o cуdigo podemos ajudar vocк.
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=361455

Veja se ele retorna algum aviso. Isto se o cуdigo nгo for muito grande.
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);


if (strcmp(cmdtext, "/drif1", true) == 0) {
    SetPlayerInterior(playerid, 0); {
        if (State != PLAYER_STATE_DRIVER) {
            SetPlayerPos(playerid, -302.0343, 1526.2135, 75.3594);
        } else if (IsPlayerInVehicle(playerid, cartype) == 1) {
            SetVehiclePos(cartype, -302.0343, 1526.2135, 75.3594);

            SetVehicleZAngle(cartype, 180.1530);
        } else {
            SetPlayerPos(playerid, -302.0343, 1526.2135, 75.3594);
        }
        static
        buff[80], pn[25];

        GetPlayerName(playerid, pn, sizeof(pn));
        format(buff, sizeof(buff), "%s foi para o drift 1 (/drift1)", pn);
        SendClientMessageToAll(0xFFFF00AA, buff);
        return 1;
    }
so ruim nesses negocios de conferir chaves, mas parece estar certo..
mas se estivesse realmente certo nгo estaria dando erro :\
Reply
#5

O site informou estб linha?

Entгo й:
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);


if (strcmp(cmdtext, "/drif1", true) == 0) {
SetPlayerInterior(playerid, 0); {
if (State != PLAYER_STATE_DRIVER) {
SetPlayerPos(playerid, -302.0343, 1526.2135, 75.3594);
} else if (IsPlayerInVehicle(playerid, cartype) == 1) {
SetVehiclePos(cartype, -302.0343, 1526.2135, 75.3594);

SetVehicleZAngle(cartype, 180.1530);
} else {
SetPlayerPos(playerid, -302.0343, 1526.2135, 75.3594);
}
static
buff[80], pn[25];

GetPlayerName(playerid, pn, sizeof(pn));
format(buff, sizeof(buff), "%s foi para o drift 1 (/drift1)", pn);
SendClientMessageToAll(0xFFFF00AA, buff);
return 1;
}

return false;
}

Reply
#6

Consertei o seu cуdigo :


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cartype = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(strcmp(cmdtext, "/drif1", true) == 0)
    {
        SetPlayerInterior(playerid, 0);
        if(State != PLAYER_STATE_DRIVER)
        {
            SetPlayerPos(playerid, -302.0343, 1526.2135, 75.3594);
        }
        else if(IsPlayerInVehicle(playerid, cartype))
        {
            SetVehiclePos(cartype, -302.0343, 1526.2135, 75.3594);
            SetVehicleZAngle(cartype, 180.1530);
        }
        else
        {
            SetPlayerPos(playerid, -302.0343, 1526.2135, 75.3594);
        }
        static buff[80], pn[25];
        GetPlayerName(playerid, pn, sizeof(pn));
        format(buff, sizeof(buff), "%s foi para o drift 1 (/drift1)", pn);
        SendClientMessageToAll(0xFFFF00AA, buff);
        return 1;
    }


Espero ter ajudado .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)