[Error 010: invalid function or declaration] CreatePickup
#1

Hello folks, I need some help, I gained this error "error 010: invalid function or declaration", And i have no idea how, This is my pawn code lines.

(This is a filterscript.)

Error:
PHP код:
\samp03dsvr_R2_win32\filterscripts\ManHole.pwn(18) : error 010invalid function or declaration
\samp03dsvr_R2_win32\filterscripts\ManHole.pwn(23) : error 010invalid function or declaration 
PHP код:

    
//ArmyBuilding2 // Line 17
    
ArmySecondBuildingSewersEnter CreatePickup(13181290.14321909.3739100.4071, -1); // Line 18
    
ArmySecondBuildingSewersExit CreatePickup(13181, -80.2782,1763.3628,349.5543, -1); // Line 19
 // Line 20
 // Line 21
    // The Woods SEWER Exit // Line 22
    
TheWoodsSewerEnter CreatePickup(13181, -74.1693,1774.5923,349.8957, -1); // Line 23 
And, Yes i'm a newbie on scripting, I would love to gain help from some experienced scripters.

The whole OnFilterScriptInit:
PHP код:
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" ---------- Filterscript by Tom");
    print(
"--------------------------------------\n");
    return 
1;
}
    
//ArmyBuilding2
    
ArmySecondBuildingSewersEnter CreatePickup(13181290.14321909.3739100.4071, -1);
    
ArmySecondBuildingSewersExit CreatePickup(13181, -80.2782,1763.3628,349.5543, -1);
    
// The Woods SEWER Exit
    
TheWoodsSewerEnter CreatePickup(13181, -74.1693,1774.5923,349.8957, -1); 
Please, Help,
Sincerely,
Tom
Reply
#2

Uhuh, I think i fixed it!

I deleted some braces, and placed return 1; in a another place.

OnFilterScriptInit now:

PHP код:
{
    print(
"\n--------------------------------------");
    print(
" ManHole Filterscript by Tom");
    print(
"--------------------------------------\n");



    
//ArmyBuilding2
    
ArmySecondBuildingSewersEnter CreatePickup(13181290.14321909.3739100.4071, -1);
    
ArmySecondBuildingSewersExit CreatePickup(13181, -80.2782,1763.3628,349.5543, -1);


    
// The Woods SEWER Exit
    
TheWoodsSewerEnter CreatePickup(13181, -74.1693,1774.5923,349.8957, -1);
    return 
1;

Did i fix it the right way?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)