Ayuda Error , No Lo Puedo Resolver
#1

Hola Como Estan Me Esta Dando Un Error Al Copilar Ayudenme Aqui

PHP код:
C:\Users\Farius\Desktop\gm by ronald\lvdm.pwn(2541) : error 030compound statement not closed at the end of file (started at line 2526)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
new 
pip[16], Nombre[MAX_PLAYER_NAME];
for(new 
i=0i<MAX_PLAYERSi++)
{
GetPlayerName(i,Nombre,sizeof(Nombre));
GetPlayerIp(ipipsizeof(pip));
if(!
strcmp(ippiptrue))
{
SendClientMessage(i0xFFFFFFFF" ");
SendClientMessage(i0xFFFFFFFF"Has sido {FF0000}expulsado {FFFFFF}por intentar acceder como administrador RCON.");
GameTextForPlayer(i"/w/ANTI RCON LOGIN"100003);
TogglePlayerControllable(ifalse);
Kick(i);
}
}
return 
1
Reply
#2

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new pip[16], Nombre[MAX_PLAYER_NAME];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        GetPlayerName(i,Nombre,sizeof(Nombre));
        GetPlayerIp(i, pip, sizeof(pip));
        if(!strcmp(ip, pip, true))
        {
            SendClientMessage(i, 0xFFFFFFFF, " ");
            SendClientMessage(i, 0xFFFFFFFF, "Has sido {FF0000}expulsado {FFFFFF}por intentar acceder como administrador RCON.");
            GameTextForPlayer(i, "/w/ANTI RCON LOGIN", 10000, 3);
            TogglePlayerControllable(i, false);
        } //te faltaba cerrar la llave
    }
    return 1; //y esto lo tenias al final
}
Traduccion del Error:
sentencia compuesta no se cierra al final del archivo (iniciada en la lнnea 2526
Reply
#3

Quote:
Originally Posted by bytytus
Посмотреть сообщение
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new pip[16], Nombre[MAX_PLAYER_NAME];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        GetPlayerName(i,Nombre,sizeof(Nombre));
        GetPlayerIp(i, pip, sizeof(pip));
        if(!strcmp(ip, pip, true))
        {
            SendClientMessage(i, 0xFFFFFFFF, " ");
            SendClientMessage(i, 0xFFFFFFFF, "Has sido {FF0000}expulsado {FFFFFF}por intentar acceder como administrador RCON.");
            GameTextForPlayer(i, "/w/ANTI RCON LOGIN", 10000, 3);
            TogglePlayerControllable(i, false);
        } //te faltaba cerrar la llave
    }
    return 1; //y esto lo tenias al final
}
Traduccion del Error:
sentencia compuesta no se cierra al final del archivo (iniciada en la lнnea 2526
hey ayudame ahora con este

PHP код:
error 075input line too long (after substitutions)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply
#4

Es raro ese error porq yo meti el codigo q te paso bytytus y me funco bieen :S
Reply
#5

dinos la linear del error, por ke en el codigo anterior no creo ke sea .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)