SA-MP Forums Archive
Little mistake - 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: Little mistake (/showthread.php?tid=399197)



Little mistake - Kethrios - 13.12.2012

Hello everybody !
I've 2 errors on the same lines, and honestly, I don't know why.

Can you please help me ? If yes, thanks in advance !


Код:
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\mygm.pwn(56918) : error 021: symbol already defined: "MoveObject"
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\mygm.pwn(56929) : error 010: invalid function or declaration
Line 56918
pawn Код:
MoveObject(jailfbi2,194.74, 160.2696, 1003.27, 2.5, 0.00, 0.00, 90.00);

Line 56929
pawn Код:
return 1;



Re: Little mistake - mineralo - 13.12.2012

you somewhre defined moveobjecte, check your codes where you did something this #define MoveObject blbla


Re: Little mistake - maramizo - 13.12.2012

Your code looks like this:
pawn Код:
Example(fa, ga)
{
    //code
    //code
    {
        //code
    }
} //The extra bracket.
    MoveObject(jailfbi2,194.74, 160.2696, 1003.27, 2.5, 0.00, 0.00, 90.00);
    return 1;
}
In which you have an extra } bracket.


Re : Little mistake - Kethrios - 13.12.2012

Oh yeah, thank you. What a shame ! In fact a bracket was missing.
+Rep for you.


Re: Re : Little mistake - maramizo - 13.12.2012

Quote:
Originally Posted by Kethrios
Посмотреть сообщение
Oh yeah, thank you. What a shame ! In fact a bracket was missing.
+Rep for you.
Missing?! Well, you're lucky you were able to find where to place it! haha, I used to spend 8 hours trying to fix those on my 120k line script.


Re : Little mistake - Kethrios - 13.12.2012

Oh lord x.x
I guess there is an fs or an include to avoid this.