SA-MP Forums Archive
Help needed. - 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: Help needed. (/showthread.php?tid=308055)



Help needed. - NewbBeginner - 02.01.2012

Код:
(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.


Re: Need help fast - [SP]Mr.Kakashi[WP] - 02.01.2012

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


Re: Need help fast - NewbBeginner - 02.01.2012

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 ?


Re: Help needed. - fangoth1 - 02.01.2012

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



Re: Help needed. - NewbBeginner - 02.01.2012

I have this above.

new gID;

it says that it's never used, but I used it.


Re: Help needed. - [SP]Mr.Kakashi[WP] - 02.01.2012

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?


Re: Help needed. - NewbBeginner - 02.01.2012

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.


Re: Help needed. - [SP]Mr.Kakashi[WP] - 02.01.2012

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


Re: Help needed. - fangoth1 - 02.01.2012

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

show us this line


Re: Help needed. - NewbBeginner - 02.01.2012

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