foreach error [HELP]
#1

Hello, I have house system and my foreach plugin it's new, but It's not working.

Код:
na\system\accounts.pwn(336) : warning 204: symbol is assigned a value that is never used: "hash"
na\system\house.pwn(45) : error 001: expected token: "-identifier-", but found "-tagname-"
na\system\house.pwn(45) : error 010: invalid function or declaration
na\system\house.pwn(45) : error 021: symbol already defined: "Itter_ClearInternal"
na\system\house.pwn(45) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
45:
Код:
Itter_Clear(Namai,NAMU_RIBA);
PLEASE HELP
Reply
#2

Probably on your line 44 you're missing a " ; " ?
(First guess)
Reply
#3

Код:
#if defined _namai_ikelta
  #endinput
#endif
#define _namai_ikelta


static
	bool:namai_OPKSC = false;

enum
	namu_mas
{
	nid,
	nsavininkas,
	Float:nx,
	Float:ny,
	Float:nz,
	nint,
	nnuoma,
	nnumeris,
	ngatve,
	bool:nraktas,
	nverte,
	nVirtualWorld,
	nInterior,
	nRadijas,
	nTelevision,
	nPlayingStation
}

Itter_Clear(namai,NAMU_RIBA);

new
	NamuDuom[ NAMU_RIBA ][ namu_mas ],
	NamuInv [ NAMU_RIBA ][ 12 ],
	NamuPick[ NAMU_RIBA];
	



enum
	intInfo
{
	Float:intX,
	Float:intY,
	Float:intZ,
	intID
}
Reply
#4

As I expected, you're missing a ";" after the closing } of the enum.
I haven't been programming in PAWNO for a long time, but I think that you need to close enums with };
Try it
Reply
#5

Nope still nothing
Reply
#6

Add:
pawn Код:
Itter_Clear(namai,NAMU_RIBA);
inside a callback.
Reply
#7

I added it on GameModeInit, but still doesen't work wtf...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)