SetTimerEx Problem...
#1

sorry fixed
Reply
#2

Quote:
Originally Posted by Amel_PAtomAXx
View Post
i got problems with SetTimerEx
pawn Code:
forward HeliStart1(i);
public HeliStart1(i);
{
    SendClientMessage(i,COLOR_GREEN,"** All Components Ready..");
    SetTimerEx("HeliStart2",400,false,"i",i);
    return 1;
}
forward HeliStart2(i);
public HeliStart2(i);
{
    SendClientMessage(i,COLOR_GREY,"** Checking Transmitter..");
    SetTimerEx("HeliStart3",1500,false,"i",i);
    return 1;
}
forward HeliStart3(i);
public HeliStart3(i);
{
    SendClientMessage(i,COLOR_GREEN,"** Transmitter Ready..");
    SetTimerEx("HeliStart4",400,false,"i",i);
    return 1;
}
forward HeliStart4(i);
public HeliStart4(i);
{
    SendClientMessage(i,COLOR_GREY,"** Checking Fuel and Fuel pump..");
    SetTimerEx("HeliStart5",1500,false,"i",i);
    return 1;
}
forward HeliStart5(i);
public HeliStart5(i);
{
    SendClientMessage(i,COLOR_GREEN,"** Fuel and Fuel Pump Ready..");
    SetTimerEx("HeliStart6",500,false,"i",i);
    return 1;
}
forward HeliStart6(i);
public HeliStart6(i);
{
    SendClientMessage(i,COLOR_GREEN,"** You are clear to Take Off..");
    SetTimerEx("HeliStart7",500,false,"i",i);
    return 1;
}
forward HeliStart7(i);
public HeliStart7(i);
{
    SendClientMessage(i,COLOR_GREY,"** Starting Helicopter Engine...");
    SetTimerEx("StartingEngine",2000,false,"i",i);
    return 1;
}
forward StartingEngine(i);
public StartingEngine(i)
{
    SendClientMessage(i,COLOR_GREEN,"Engine started.");
    new vid;
    vid = GetPlayerVehicleID(i);
    if(vid != INVALID_VEHICLE_ID)
    {
        GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
       
    }
    return 1;
}
pawn Code:
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5005) : error 055: start of function body without function header
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5008) : error 010: invalid function or declaration
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5012) : error 055: start of function body without function header
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5015) : error 010: invalid function or declaration
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5019) : error 055: start of function body without function header
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5022) : error 010: invalid function or declaration
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5026) : error 055: start of function body without function header
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5029) : error 010: invalid function or declaration
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5033) : error 055: start of function body without function header
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5036) : error 010: invalid function or declaration
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5040) : error 055: start of function body without function header
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5043) : error 010: invalid function or declaration
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5047) : error 055: start of function body without function header
D:\SAMP\samp03csvr_R3-1_win32\gamemodes\stunt.pwn(5050) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


14 Errors.
any help ?
Why are you looping firstly, and remove the ; at the end of the function.

Also, you've declared all these functions with the set timers just to return a message....

/facepalm
Reply
#3

I Hope you fixed it with

https://sampwiki.blast.hk/wiki/SetTimerEx

-.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)