SA-MP Forums Archive
[HELP]Huge ammout of warning caused by CreateObject. - 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: [HELP]Huge ammout of warning caused by CreateObject. (/showthread.php?tid=96576)



[HELP]Huge ammout of warning caused by CreateObject. - guaid - 09.09.2009

The warning line is 824 lines so i'm gonna put a part of it out
Код:
\Guaid_fs.pwn(119) : warning 217: loose indentation
Guaid_fs.pwn(119) : warning 202: number of arguments does not match definition
Guaid_fs.pwn(119) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(119) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(119) : warning 202: number of arguments does not match definition
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(119) : warning 202: number of arguments does not match definition
\gamemodes\Guaid_fs.pwn(119) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(120) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(120) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(120) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(120) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(120) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(120) : warning 202: number of arguments does not match definition
\Guaid_fs.pwn(121) : warning 202: number of arguments does not match definition
it keep's on doing that all way down.
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


824 Warnings.
i know that warning arent blocking for playing.... like errors but i would like to erase them,
Line 119 and 120,
pawn Код:
CreateObject(1660, 1687,86, -2491,83, 12,00, 0,00, 0,00, 90,00);
CreateObject(1660, 1703,23, -2500,19, 12,00, 0,00, 0,00, -90,00);



Re: [HELP]Huge ammout of warning caused by CreateObject. - Donny_k - 09.09.2009

You have a comma when it should be a decimal in your float arguments.




Re: [HELP]Huge ammout of warning caused by CreateObject. - Peter_Corneile - 10.09.2009

Change that 0,00 to 0.00 and the warnings will go


Re: [HELP]Huge ammout of warning caused by CreateObject. - [XST]O_x - 10.09.2009

Change:
pawn Код:
CreateObject(1660, 1687,86, -2491,83, 12,00, 0,00, 0,00, 90,00);
CreateObject(1660, 1703,23, -2500,19, 12,00, 0,00, 0,00, -90,00);
To:
pawn Код:
CreateObject(1660, 1687.86, -2491.83, 1.00, 0.00, 0.00, 90.00);
CreateObject(1660, 1703.23, -2500.19, 12.00, 0.00, 0.00, -90.00);
it will work i promise


Re: [HELP]Huge ammout of warning caused by CreateObject. - Peter_Corneile - 10.09.2009

Quote:
Originally Posted by [KMA
America ]
Change:
pawn Код:
CreateObject(1660, 1687,86, -2491,83, 12,00, 0,00, 0,00, 90,00);
CreateObject(1660, 1703,23, -2500,19, 12,00, 0,00, 0,00, -90,00);
To:
pawn Код:
CreateObject(1660, 1687.86, -2491.83, 1.00, 0.00, 0.00, 90.00);
CreateObject(1660, 1703.23, -2500.19, 12.00, 0.00, 0.00, -90.00);
it will work i promise
Yup