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



Errrors - viosteaua98 - 14.10.2011


Alot of errors what's the problem :S


Re: Errrors - SmiT - 14.10.2011

You know, actually we can't see the errors, scroll to the right the Pawn Compiler Output.


Re: Errrors - viosteaua98 - 14.10.2011

Done


Re: Errrors - Josma_cmd - 14.10.2011

pawn Код:
new autogate2; //global
Send the lines of these errors in the tag [*pawn] [/pawn]
Remove the *


Re: Errrors - viosteaua98 - 14.10.2011

now only 1 error



Re: Errrors - Josma_cmd - 14.10.2011

Send-me the line of this erro.
Use the tag [*code] [/code] or [*pawn] [/pawn].
Or send-me as text. You need to remove the *


Re: Errrors - Wesley221 - 14.10.2011

Copy paste the codes next time, where the errors are.
In the last picture you have
{
MoveObject
MoveObject

Why do you open a callback, and not closing it? Though it wouldnt change anything.
Remove the {. Then cut the MoveObjects, and paste them where you want the objects to be moved. Like when you do a command, it will move the MoveObjects.


Re: Errrors - viosteaua98 - 14.10.2011

So look i want make some gates move automatly no command ...
so i puted in section OnPlayerUpdate if(IsPlayerInRangeOfPoint... and others)
when i am near gate move(open) and when i am far it should close ...
but that error doesn't let me


Re: Errrors - viosteaua98 - 14.10.2011

pawn Код:
D:\Jocuri\Gta san andreas\Server\filterscripts\LasVenturas.pwn(26) : error 055: start of function body without function header
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
new autogate;//global

{
    MoveObject(autogate,905.50000000,734.59997559,9.80000019,3);
    MoveObject(autogate,911.09997559,719.20001221,9.69999981,3);

forward close();
public close()
{ is 26 in that error


Re: Errrors - Wesley221 - 14.10.2011

Quote:
Originally Posted by viosteaua98
Посмотреть сообщение
pawn Код:
D:\Jocuri\Gta san andreas\Server\filterscripts\LasVenturas.pwn(26) : error 055: start of function body without function header
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
new autogate;//global

{
    MoveObject(autogate,905.50000000,734.59997559,9.80000019,3);
    MoveObject(autogate,911.09997559,719.20001221,9.69999981,3);

forward close();
public close()
The '{' is unnessecery (not sure if this is spelled right), aswell for the moveObject functions. The MoveObject thing should be in a command, timer, somewhere else. Not outside a callback. Add it to your command where it should move the object, or whenever you want to move the objects.