[AJUDA]portao automatico
#1

Olб eu estou a fazer 1 moving object pareзido como no tutorial.
e estou tendo estes erros:

PHP код:
C:\Documents and Settings\kikito.KIKITO-PC\Ambiente de trabalho\tb\tb.pwn(89) : error 001expected token"*then"but found ";"
C:\Documents and Settings\kikito.KIKITO-PC\Ambiente de trabalho\tb\tb.pwn(89) : error 036: empty statement
C
:\Documents and Settings\kikito.KIKITO-PC\Ambiente de trabalho\tb\tb.pwn(93) : error 001expected token"*then"but found ":"
C:\Documents and Settings\kikito.KIKITO-PC\Ambiente de trabalho\tb\tb.pwn(93) : error 029invalid expressionassumed zero 
Linhas:
PHP код:
if IsPlayerInRangeOfPoint(playerid202375.20, -2657.9512.692);    
else if 
IsPlayerInRangeOfPoint(playerid202375.20, -2657.9512.692): 
Й so os unicos erros no meu filterscript.
Reply
#2

Mostras as linhas 75 e 100
Reply
#3

PHP код:
este й o command:
COMMAND:abrirportao(playeridparams[])
{   
    new 
name[24];
    
GetPlayerName(playeridnamesizeof(name));
    if(
strcmp("[TB]"nametrue) == 0)
    {
    if 
IsPlayerInRangeOfPoint(playerid202375.20, -2657.9512.692.0);    
    
MoveObject(gate12375.2000, -2657.950012.69002.0);    
    
SendClientMessage(playerid0xFF8000FF"O portгo esta agora aberto :D.");
    }    
    else if 
IsPlayerInRangeOfPoint(playerid202375.20, -2657.9512.692.0):    
    
MoveObject(gate22375.2000, -2657.950012.69002.0);    
    
SendClientMessage(playerid0xFF8000FF"O portгo esta agora aberto :D.");    
100 --> return 1;    

linha 75 = return 1;
Reply
#4

Код:
dcmd_abrirportao(playerid, params[])
{
    new name[24];
    GetPlayerName(playerid, name, sizeof(name));
    if(strcmp("[TB]", name, true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69, 2.0))
    MoveObject(gate1, 2375.2000, -2657.9500, 12.6900, 2.0);
    SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
    }
    else
	if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69, 2.0))
    MoveObject(gate2, 2375.2000, -2657.9500, 12.6900, 2.0);
    SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
    return 1;
}
tenta isso!
Reply
#5

Continuo com os mesmo erros :S
Reply
#6

Nгo queres dizer
pawn Код:
COMMAND:abrirportao(playerid, params[])
{    
    new name[24];
        GetPlayerName(playerid, name, sizeof(name));
        if(strcmp("[TB]", name, true) == 0)
        {
            if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
            {    
                MoveObject(gate1, 2375.2000, -2657.9500, 12.6900, 2.0);    
                SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
        }    
            else if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
            {    
                MoveObject(gate2, 2375.2000, -2657.9500, 12.6900, 2.0);    
            SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
            }
    }    
    return 1;    
}
Reply
#7

^^
Esta a trablhar agora firecat...REP for you
Reply
#8

Np :b
Reply
#9

@Off sу pra dizer q sendo 06:48 a.m aqui no brasil й engraзado ver sу portugueses postando no forum...
Reply
#10

//OFF XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)