Help needed.
#1

Код:
(9) : error 010: invalid function or declaration
(3716) : warning 203: symbol is never used: "gID"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 9
Код:
gID = gGate(976, 1546.19995117,-1618.40002441,12.60000038,0.00000000,0.00000000,268.75000000, 1546.30004883,-1611.00000000,12.60000038, -1, -1, -1);
Код:
function gGate(modelid, Float: cX, Float: cY, Float: cZ, Float: rX, Float: rY, Float: rZ, Float: oX, Float: oY, Float: oZ, cInt, cVW, Parent)
{
	if(gates >= MAX_GATES)
	{
		print("406");
		return 0;
	}
	Gate[gates][ObjectId] = CreateDynamicObject(modelid, cX, cY, cZ, rX, rY, rZ, cVW, cInt);

	Gate[gates][CloseX] = cX;
	Gate[gates][CloseY] = cY;
	Gate[gates][CloseZ] = cZ;

	Gate[gates][OpenX] = oX;
	Gate[gates][OpenY] = oY;
	Gate[gates][OpenZ] = oZ;


	Gate[gates][ParentId] = Parent;

	gates++;
	return gates-1;
}
Help please.
Reply
#2

Many rule breaker here
First thing that i have ever read in posting thread is

- Don't post a tittle thread like "Need help fast" thats annoying

No one will gonna help you if you didn't tittle it correctly or explain in correctly
Reply
#3

Quote:
Originally Posted by [SP]Mr.Kakashi[WP]
Посмотреть сообщение
Many rule breaker here
First thing that i have ever read in posting thread is

- Don't post a tittle thread like "Need help fast" thats annoying

No one will gonna help you if you didn't tittle it correctly or explain in correctly
Changed a bit.

Anyone can help me ?
Reply
#4

put this under your includes
Код HTML:
new gID;
Reply
#5

I have this above.

new gID;

it says that it's never used, but I used it.
Reply
#6

to use it you must do this the example is in the bottom

pawn Код:
Moveobject(gId,blahblahblah);
thats example only. what are you trying to do with it?
Reply
#7

Gates are moving with an other function. I just want to know why it says that gID is never used when it's actually used.
Reply
#8

the reason why its never used is you didn't used it in the function just i told you in above
use the gID
Reply
#9

(3716) : warning 203: symbol is never used: "gID"

show us this line
Reply
#10

But you were wrong..
I just found mistake, I needed to put all this under OnGameModeInit..

It's Ok Thanks for helping anyways, I just figured out one gate system and it's a bit complicated :d
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)