Help please, foreach bug.
#1

Hey, i have this script: http://pastebin.com/PMis0BAf

Everything works fine, but when the gamemode restarts, i have this foreach error:

Код:
SERVER LOG:

[19:51:29] foreach error: Something went wrong again! Please tell ******
[19:51:29] -1
[19:51:29] 0
[19:51:29] -1
[19:51:29] 0
[19:51:29] 3
[19:51:29] 1
And after the gamemode restarted, i can't spawn! I press the button "Spawn" and nothing happens!

Extra code (My OnGameModeInit):

Код:
public OnGameModeInit()
{
	// Audio
	Audio_SetPack("default_pack", true);
	SetTimer("randAudio", 10000, true);

	SendRconCommand("reloadfs Z"); // The FS that was pasted on pastebin
	SetGameModeText("Test Server");
	AddPlayerClass(0, 1673.3588867188, -1376.3424072266, 84.062004089355, 0.0, 0, 0, 0, 0, 0, 0);
	return 1;
}
If anyone can help, please help, I really want it to get ready
Reply
#2

Quote:
Originally Posted by Hot
Код:
[19:51:29] foreach error: Something went wrong again! Please tell ******
Do as this line told you?
Reply
#3

****** does not answer me.
Reply
#4

Quote:
Originally Posted by Hot
****** does not answer me.
If you post in the foreach topic then i believe he'll reply to you (sooner or later).
Reply
#5

yeah, already did... Can you please take a look at my script, Don?
Reply
#6

Well, if i compile this script (and add main() function to it) i don't have any foreach errors in the console.
Reply
#7

When the gamemode restarsts, i will show you my gamemode script:

http://pastebin.com/cmGUhqvv

Instructions: Use this gamemode (put it on server.cfg), DO NOT PUT THE FS AT SERVER.CFG.

After you play the first round, the gamemode should restart and you will not be able to spawn :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)