Timer problem
#1

At the top of theGM
PHP код:
forward RACT();
forward RACTA();///348 
PHP код:
public RACTA();
/// 17098
    
SendClientMessageToAll(COLOR_YELLOW2,"Toate masiniile v-or fi respawnate in mai putin de 1 minut.")
}
public 
RACT();
{
    new 
bool:unwanted[CAR_AMOUNT];
    for(new 
player=0player<MAX_PLAYERSplayer++)
    {
        if(
IsPlayerInAnyVehicle(player))
        {
            
unwanted[GetPlayerVehicleID(player)]=true;
        }
    }
    for(new 
car 1car <= 420car++) ///17111
    
{
        if(!
unwanted[car]) SetVehicleToRespawn(car);
    }

Код:
xMA5.pwn(348) : error 010: invalid function or declaration
xMA5.pwn(17098) : error 055: start of function body without function header
xMA5.pwn(17102) : error 055: start of function body without function header
xMA5.pwn(17104) : error 010: invalid function or declaration
xMA5.pwn(17106) : error 010: invalid function or declaration
xMA5.pwn(17113) : error 010: invalid function or declaration
Reply
#2

Replace

PHP код:
public RACT();
{
}
public 
RACTA();
{

with

PHP код:
public RACT() // no semicolon
{
}
public 
RACTA() // no semicolon
{

Reply
#3

change
Код:
public RACT();
public RACTA();
and
Код:
public RACT()
public RACTA()
Reply
#4

Functiile publice nu au ;
Reply
#5

Only forward requires a "();" public is just "()"
Reply
#6

PHP код:
forward RACT(); 
forward RACTA();
public 
RACTA() 

    
SendClientMessageToAll(COLOR_YELLOW2,"Toate masiniile v-or fi respawnate in mai putin de 1 minut.") ;
    return 
1;

public 
RACT()

    new 
bool:unwanted[CAR_AMOUNT]; 
    for(new 
player=0player<MAX_PLAYERSplayer++) 
    { 
        if(
IsPlayerInAnyVehicle(player)) 
        { 
            
unwanted[GetPlayerVehicleID(player)]=true
        } 
    } 
    for(new 
car 1car <= 420car++) ///17111 
    

        if(!
unwanted[car]) SetVehicleToRespawn(car); 
    } 
    return  
1;

try this one
Reply
#7

Quote:
Originally Posted by zPain
Посмотреть сообщение
Replace

PHP код:
public RACT();
{
}
public 
RACTA();
{

with

PHP код:
public RACT() // no semicolon
{
}
public 
RACTA() // no semicolon
{

Quote:
Originally Posted by czerwony03
Посмотреть сообщение
change
Код:
public RACT();
public RACTA();
and
Код:
public RACT()
public RACTA()
Quote:
Originally Posted by Banditul18
Посмотреть сообщение
Functiile publice nu au ;
Quote:
Originally Posted by saffierr
Посмотреть сообщение
Only forward requires a "();" public is just "()"
Quote:
Originally Posted by LovelySoomro
Посмотреть сообщение
PHP код:
forward RACT(); 
forward RACTA();
public 
RACTA() 

    
SendClientMessageToAll(COLOR_YELLOW2,"Toate masiniile v-or fi respawnate in mai putin de 1 minut.") ;
    return 
1;

public 
RACT()

    new 
bool:unwanted[CAR_AMOUNT]; 
    for(new 
player=0player<MAX_PLAYERSplayer++) 
    { 
        if(
IsPlayerInAnyVehicle(player)) 
        { 
            
unwanted[GetPlayerVehicleID(player)]=true
        } 
    } 
    for(new 
car 1car <= 420car++) ///17111 
    

        if(!
unwanted[car]) SetVehicleToRespawn(car); 
    } 
    return  
1;

try this one
Something wrong with yall? Cant u see zpain already explained it,did u just had to repeat the samething he said?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)