[Ajuda] Erros ao compilar sistema de hotel
#1

Код:
C:\Documents and Settings\Administrador\Ambiente de trabalho\LHS\LHS.pwn(103) : error 001: expected token: ";", but found "}"
C:\Documents and Settings\Administrador\Ambiente de trabalho\LHS\LHS.pwn(105) : error 001: expected token: ";", but found "}"
C:\Documents and Settings\Administrador\Ambiente de trabalho\LHS\LHS.pwn(114) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Administrador\Ambiente de trabalho\LHS\LHS.pwn(117) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Код:
    
    if(!strcmp("/thotel",cmdtext,true))
    {    
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,branco,"Vocк nгo estб logado na rcon para usar este comando!");
    if(dini_Int("hotel.ini","AF") == 0) {     
        dini_IntSet("hotel.ini","AF",1)   
    } else if(dini_Int("hotel.ini","AF") == 1) { << Aqui й a linha 103 
    dini_IntSet("hotel.ini","AF",0) 
    }<< Aqui й a linha 105 
    return 1;
    }
    
    if(!strcmp("/photel",cmdtext,true))
    {    
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,branco,"Vocк nгo estб logado na rcon para usar este comando!");
    if(dini_Int("hotel.ini","PR") == 0) {     
        dini_IntSet("hotel.ini","PR",1)
        ConnectNPC("Porteiro","porteiro");<< Aqui й a linha 114
    } else if(dini_Int("hotel.ini","PR") == 1) {    
    dini_IntSet("hotel.ini","PR",0)
    Kick(0); << Aqui й a linha 117 
    }
    return 1;
    }


Alguйm me poderia a ajudar a Resolver e a entender estes erros? Grato.
Reply
#2

falta ; em algumas partes.
Reply
#3

Quote:
Originally Posted by PT
Посмотреть сообщение
falta ; em algumas partes.
Mas na linha 115 levaria o ; em q parte? '-'
Reply
#4

nгo seria aqui? ....as veses esse erro da numa linha mais й lб em cima onde comeзa o erro e responde em outra mais abaixo.
dini_IntSet("hotel.ini","AF",1);
Reply
#5

Quote:
Originally Posted by silenthill
Посмотреть сообщение
nгo seria aqui? ....as veses esse erro da numa linha mais й lб em cima onde comeзa o erro e responde em outra mais abaixo.
dini_IntSet("hotel.ini","AF",1);
Hm.. vo testar!

+rep, Agr foi! PT tambйm te dou +reo...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)