SA-MP Forums Archive
error 010: invalid function or declaration [ Help Support ] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 010: invalid function or declaration [ Help Support ] (/showthread.php?tid=595137)



error 010: invalid function or declaration [ Help Support ] - NamJP - 28.11.2015

Warning :
./includes/gvcmode.pwn(139848 ) : error 010: invalid function or declaration
./includes/gvcmode.pwn(139853) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
SetPlayerHealth(playerid, 0.0);
}

if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && weaponid == 31 && weaponid == 24 && weaponid == 22 && weaponid == 27 && weaponid == 29 && weaponid == 34 && ( bodypart ==7||bodypart== 8 ) );
{
ApplyAnimation(playerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
}

Plesee Helpme , Me Bad English Sorry ...


Re: error 010: invalid function or declaration [ Help Support ] - UltraScripter - 28.11.2015

pawn Код:
|| body part ==8))
Without the ;


Re: error 010: invalid function or declaration [ Help Support ] - NamJP - 28.11.2015

if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9);
{
SetPlayerHealth(playerid, 0.0);
}

if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && weaponid == 31 && weaponid == 24 && weaponid == 22 && weaponid == 27 && weaponid == 29 && weaponid == 34 && ( bodypart ==7||bodypart== );
{
ApplyAnimation(playerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
}
... Warning Again Help Me Plesee Scripter ...


Re: error 010: invalid function or declaration [ Help Support ] - UltraScripter - 28.11.2015

When you use if(something == something2) don't add ;
Example
if(something == something)
{

}

Not like this :
if(something == something2);
{

}


Re: error 010: invalid function or declaration [ Help Support ] - NamJP - 28.11.2015

if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && weaponid 2 == 31
?


Re: error 010: invalid function or declaration [ Help Support ] - UltraScripter - 28.11.2015

Yes but add: )


Re: error 010: invalid function or declaration [ Help Support ] - UltraScripter - 28.11.2015

if(issureid != INVALID_PLAYER_ID && weaponid == 25 || weaponid == 31)
{
//your code.
}


Re: error 010: invalid function or declaration [ Help Support ] - NamJP - 28.11.2015

weaponid == 25 && weaponid : 2) == 31 && weaponid : 3 ) == 24 && weaponid : 4 ) == 22 && weaponid : 5 ) == 27 && weaponid : 6 ) == 29 && weaponid : 7 ) == 34 && ( bodypart ==7||bodypart== );
? Scripter , Right


Re: error 010: invalid function or declaration [ Help Support ] - UltraScripter - 28.11.2015

No don't add ;
Look how I did

pawn Код:
if(issureid != INVALID_PLAYER_ID && weaponid == 25 || weaponid == 31)
{
     //your code.
}