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



Silly question - TKZ227 - 01.04.2010

I'm really new to scripting, and I'm working on scripting a DM server. I'm getting these warnings, and I'm sure it's for a stupid mistake I made, but if you could please tell me how to fix it I would really appreciate it. I tried searching it on these forums, and on ******, but I found nothing. Please don't flame me, because I'm new at scripting.

Код:
warning 202: number of arguments does not match definition



Re: Silly question - Correlli - 01.04.2010

If you're wondering why you're getting this warning then ****** for pawn-lang.pdf guide (PAWN language guide) and read the explanation for that warning or just post your part of code in which that error appears and we'll fix it for you and tell you what was wrong.


Re: Silly question - TKZ227 - 01.04.2010

I have 61 of these errors. All of the lines are addplayerclass or addstaticvehicle.

Код:
AddStaticVehicle(415, 328.9177,-46.2620,1.5186,270.5224);



Re: Silly question - MadeMan - 01.04.2010

https://sampwiki.blast.hk/wiki/AddPlayerClass

https://sampwiki.blast.hk/wiki/AddStaticVehicle



Re: Silly question - Razvann - 01.04.2010

Quote:
Originally Posted by TKZ227
I have 61 of these errors. All of the lines are addplayerclass or addstaticvehicle.

Код:
AddStaticVehicle(415, 328.9177,-46.2620,1.5186,270.5224);
You should put the angle, the col1, col2.


Re: Silly question - TKZ227 - 01.04.2010

All fixed, I just forgot the color. Thank you very much.


Re: Silly question - TKZ227 - 01.04.2010

EDIT: FIXED




Re: Silly question - Correlli - 01.04.2010

You should include a_samp file before the others (dini, dudb).


Re: Silly question - TKZ227 - 01.04.2010

Done, still 6 errors.

Код:
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(82) : warning 202: number of arguments does not match definition
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(129) : error 055: start of function body without function header
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(130) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(138) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(140) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(148) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(150) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(287) : warning 203: symbol is never used: "ret_memcpy"
C:\Users\Tyler\Desktop\EDM\EpicDM.pwn(287) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.



Re: Silly question - ZeRo_HUN - 01.04.2010

You must delete this line:

Код:
#if defined filterscript
And after that this one:

Код:
#endif
And remove the OnFilterScriptInit and OnFilterScriptExit functions.