[Ajuda] 4 Erros em uma linha
#1

PHP код:
C:\Documents and Settings\Administrador\Desktop\prontobt\gamemodes\BTv1.0.pwn(280) : error 012invalid function callnot a valid address
C
:\Documents and Settings\Administrador\Desktop\prontobt\gamemodes\BTv1.0.pwn(280) : warning 215expression has no effect
C
:\Documents and Settings\Administrador\Desktop\prontobt\gamemodes\BTv1.0.pwn(280) : error 001expected token";"but found ")"
C:\Documents and Settings\Administrador\Desktop\prontobt\gamemodes\BTv1.0.pwn(280) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Administrador\Desktop\prontobt\gamemodes\BTv1.0.pwn(280) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

linha

PHP код:
if(DOF2_FileExists(PlayerArchive(playerid))) 
Reply
#2

Poste PlayerArchive.
Reply
#3

pawn Код:
if(DOF2_FileExists(PlayerArchive(playerid))
Tinha um ) a mais '-'

#Edit

Fail

Provavelmente o PlayerArchive nгo estб retornando uma array.
Reply
#4

pawn Код:
if(DOF2_FileExists(PlayerArchive(playerid)))
esse й o certo

posta mais codigo pra gente ver
Reply
#5

tem a new PlayerArchive;
aqui o onplayerconnect
PHP код:
public OnPlayerConnect(playerid)
{
if(
Informacoes[playerid][PlayerBanido] == 1) return Mensagem(playeridRED"Banido do Servidor Temporariбmente, Bye!"), Kick(playerid);
if(
DOF2_FileExists(PlayerArchive(playerid)))
{
ShowPlayerDialog(playeridLoginCaseDIALOG_STYLE_INPUT,"Logando no Servidor""Bem Vindo Novamente\nLogue-se com Sua Senha do Registro","Logar","Cancelar");
}
else
{
ShowPlayerDialog(playeridRegisterCaseDIALOG_STYLE_INPUT,"Registrando no Servidor""Bem Vindo ao Servidor\nDigite sua Senha Abaixo Para Registrar-se","Registrar","Cancelar");

Reply
#6

Quote:
Originally Posted by Victor'
Посмотреть сообщение
pawn Код:
if(DOF2_FileExists(PlayerArchive(playerid))
Tinha um ) a mais '-'
Nгo tinha nгo. O dele estб correto, se tem 3 brackets abertos, logo deve possuir 3 brackets fechados.

-

Vocк criou uma variбvel para fazer isso?
Faзa dessa forma: (exemplo)
pawn Код:
PlayerArchive(i) {
    new
        str[50],
        nome[25]
    ;
    GetPlayerName(i,nome,25);
    return (format(str,50,"/DIRETORIO/%s.ini",nome));
}
E apague a variбvel que vocк disse ter criado com o nome PlayerArchive.
Reply
#7

alguem aer vai me ajudar ?
Reply
#8

Quote:
Originally Posted by AFerreira
Посмотреть сообщение
Nгo tinha nгo. O dele estб correto, se tem 3 brackets abertos, logo deve possuir 3 brackets fechados.
Sу percebi depois q postei rs'
Reply
#9

Postб a PlayerArchive
Reply
#10

LOOL NGM VAI ME AJUDAR NГO Й ? ;S
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)