Line 23852 Help!
#1

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++)
Reply
#2

You need to define FlareInfo!

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

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
Reply
#4

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

im still getting errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)