[Error 010: invalid function or declaration] CreatePickup -
TR4MP - 25.02.2012
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 010: invalid function or declaration
\samp03dsvr_R2_win32\filterscripts\ManHole.pwn(23) : error 010: invalid function or declaration
PHP код:
//ArmyBuilding2 // Line 17
ArmySecondBuildingSewersEnter = CreatePickup(1318, 1, 290.1432, 1909.3739, 100.4071, -1); // Line 18
ArmySecondBuildingSewersExit = CreatePickup(1318, 1, -80.2782,1763.3628,349.5543, -1); // Line 19
// Line 20
// Line 21
// The Woods SEWER Exit // Line 22
TheWoodsSewerEnter = CreatePickup(1318, 1, -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(1318, 1, 290.1432, 1909.3739, 100.4071, -1);
ArmySecondBuildingSewersExit = CreatePickup(1318, 1, -80.2782,1763.3628,349.5543, -1);
// The Woods SEWER Exit
TheWoodsSewerEnter = CreatePickup(1318, 1, -74.1693,1774.5923,349.8957, -1);
Please, Help,
Sincerely,
Tom
Re: [Error 010: invalid function or declaration] CreatePickup -
TR4MP - 25.02.2012
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(1318, 1, 290.1432, 1909.3739, 100.4071, -1);
ArmySecondBuildingSewersExit = CreatePickup(1318, 1, -80.2782,1763.3628,349.5543, -1);
// The Woods SEWER Exit
TheWoodsSewerEnter = CreatePickup(1318, 1, -74.1693,1774.5923,349.8957, -1);
return 1;
}
Did i fix it the right way?