SA-MP Forums Archive
Moveobject issue. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Moveobject issue. (/showthread.php?tid=179165)



Moveobject issue. - Scriptissue - 25.09.2010

I have been trying to utilize moveobject command in order to make an animation to a barrier, but no success.
I tried to place new obj; at the top, but it always give me an error message : I placed it at the top right under #include thingy.
PHP код:
warning 203symbol is never used"obj" 
then I was tying to script this function :

PHP код:
public OnGameModeInit()
{
    
obj CreateObject(9800.00.00.00.00.00.0);
    return 
1;


It this warning message showed up:
PHP код:
[B]warning 204symbol is assigned a value that is never used"obj"[/B
How can I define these weird commands ?


Re: Moveobject issue. - Mike_Peterson - 25.09.2010

use moveobject(obj, ...etc and the error dissapears


Re: Moveobject issue. - Memoryz - 25.09.2010

That warning will not make a difference on if the gate moves or not. It will still move provided the code you are using is functional.

You can try adding this to the ongamemodeinit

pawn Код:
printf("%s", obj);



Re: Moveobject issue. - Scriptissue - 25.09.2010

What about :
PHP код:
obj CreateObject(9800.00.00.00.00.00.0); 
What should do here ?
and what about
PHP код:
new obj
?


Re: Moveobject issue. - Memoryz - 25.09.2010

Those are both fine.


Re: Moveobject issue. - Scriptissue - 25.09.2010

I can't compile the file, it keep giving these error messages.


Re: Moveobject issue. - Memoryz - 25.09.2010

The thing you posted above is a warning. It will not make a difference and your script still compiles.


Re: Moveobject issue. - Scriptissue - 25.09.2010

It won't let me run my server, unless I solve the problem.