SA-MP Forums Archive
Line 23852 Help! - 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: Line 23852 Help! (/showthread.php?tid=392496)



Line 23852 Help! - KeenanRitchie - 14.11.2012

I need some Help with this

PHP код:
gamemodes\KARP.pwn(23852) : error 017undefined symbol "FlareInfo"
gamemodes\KARP.pwn(23852) : error 036: empty statement
gamemodes
\KARP.pwn(23852) : error 017undefined symbol "i"
gamemodes\KARP.pwn(23852) : fatal error 107too many error messages on one line 
Код:
line (23582):for(new i = 0; i < sizeof(FlareInfo); i++)



Re: Line 23852 Help! - JJones432 - 14.11.2012

You need to define FlareInfo!

Something like:
pawn Код:
new FlareInfo[size]



Re: Line 23852 Help! - KeenanRitchie - 14.11.2012

Quote:
Originally Posted by JJones432
Посмотреть сообщение
You need to define FlareInfo!

Something like:
pawn Код:
new FlareInfo[size]
Код:
new FlareInfo[MAX_FLARES][flInfo];

stock CreateFlare(Float:x,Float:y,Float:z,Float:Angle)
{
    for(new i = 0; i < sizeof(FlareInfo); i++)
  	{
  	    if(FlareInfo[i][fCreated] == 0)
  	    {
            FlareInfo[i][fCreated]=1;
            FlareInfo[i][fX]=x;
            FlareInfo[i][fY]=y;
            FlareInfo[i][fZ]=z-0.5;
            FlareInfo[i][fObject] = CreateObject(18728, x, y, z-2.8, 0, 0, Angle-90);
	        return 1;
  	    }
  	}
  	return 0;
}
I have this


Re: Line 23852 Help! - NumbSkull - 14.11.2012

for(new i = 0; i < sizeof(FlareInfo); i++)
should be
for(new i = 0; i < sizeof(MAX_FLARES); i++)
you can start there


Re: Line 23852 Help! - KeenanRitchie - 14.11.2012

im still getting errors