Post: What am i doing wrong with my coding?
12-28-2010, 11:31 AM #1
FrozN
Look up my Patch Edits :P
(adsbygoogle = window.adsbygoogle || []).push({}); I Edited Derek's edit of mossy v8. And i added the Freeze all players option. But when i start a game, and the map is loading then it just freezes and gives me an error; Script Compile Error. Unknown function.
:confused:
What did i do wrong? Here is the code's i have added.
Pic 1. You must login or register to view this content.
Pic. 2 You must login or register to view this content.
Any help will be appreciated. My best bet is that i need to add code to another .gsc. Because it says that it is an unknown function. Winky Winky
(adsbygoogle = window.adsbygoogle || []).push({});
12-28-2010, 12:30 PM #2
EliteMossy
TheDigitalBoard.com
You are not calling the correct function!

maps\mp\_events::Freezer; is what you need to call!

Even that will still not work properly.

The code i would use is:

Freezer(){
if(level.FrozenPlayers==1){
self iprintln("Everyone Un-frozen");
level.FrozenPlayers=0;
foreach (p in level.players){
p freezeControlsWrapper(0);
}}else{
self iprintln("Everyone Frozen");
level.FrozenPlayers=1;
foreach (p in level.players){
p freezeControlsWrapper(1);
}}}

The following 2 users say thank you to EliteMossy for this useful post:

FrozN, JakeM
12-28-2010, 12:39 PM #3
Originally posted by EliteMossy View Post
You are not calling the correct function!

maps\mp\_events::Freezer; is what you need to call!

Even that will still not work properly.

Freezer(){
if(level.FrozenPlayers==1){
self iprintln("Everyone Un-frozen");
level.FrozenPlayers=0;
foreach (p in level.players){
p freezeControlsWrapper(0);
}}else{
self iprintln("Everyone Frozen");
level.FrozenPlayers=1;
foreach (p in level.players){
p freezeControlsWrapper(1);
}}}


why wont it work properly?
12-28-2010, 12:45 PM #4
Arvindian
Error… Cat invasion!
Originally posted by FrozN View Post
I Edited Derek's edit of mossy v8. And i added the Freeze all players option. But when i start a game, and the map is loading then it just freezes and gives me an error; Script Compile Error. Unknown function.
:confused:
What did i do wrong? Here is the code's i have added.
Pic 1. You must login or register to view this content.
Pic. 2 You must login or register to view this content.
Any help will be appreciated. My best bet is that i need to add code to another .gsc. Because it says that it is an unknown function. Winky Winky


It should Be : Freezer(pick)
{

and calling the function should be : =maps\mp\_event::Freezer

Hope I helped!
12-28-2010, 01:21 PM #5
EliteMossy
TheDigitalBoard.com
Originally posted by Shaarpy View Post
why wont it work properly?


That coding i put was mine, HIS coding will not work properly.
12-28-2010, 01:25 PM #6
Originally posted by EliteMossy View Post
That coding i put was mine, HIS coding will not work properly.


ah i see /facepalm

The following user thanked Shaarpy for this useful post:

FrozN
12-28-2010, 02:26 PM #7
Arvindian
Error… Cat invasion!
Originally posted by EliteMossy View Post
That coding i put was mine, HIS coding will not work properly.


Can you tell me if my coding will work? Yes I'm a noob looking to improve :angel:
12-28-2010, 03:13 PM #8
mossy coding worked with me Smile
12-28-2010, 04:40 PM #9
FrozN
Look up my Patch Edits :P
Originally posted by EliteMossy View Post
You are not calling the correct function!

maps\mp\_events::Freezer; is what you need to call!

Even that will still not work properly.

The code i would use is:

Freezer(){
if(level.FrozenPlayers==1){
self iprintln("Everyone Un-frozen");
level.FrozenPlayers=0;
foreach (p in level.players){
p freezeControlsWrapper(0);
}}else{
self iprintln("Everyone Frozen");
level.FrozenPlayers=1;
foreach (p in level.players){
p freezeControlsWrapper(1);
}}}


Then will this work? Or am i totally wrong? Just started editing this morning. And i really appreciate you help. Winky Winky
You must login or register to view this content.
You must login or register to view this content.
Thanks.

---------- Post added at 05:40 PM ---------- Previous post was at 05:37 PM ----------

Originally posted by FrozN View Post
Then will this work? Or am i totally wrong? Just started editing this morning. And i really appreciate you help. Winky Winky
You must login or register to view this content.
You must login or register to view this content.
Thanks.


EDIT. Just saw your code. Should i use that?
12-28-2010, 04:41 PM #10
JakeM
ZOMG HaXz!
Originally posted by FrozN View Post
Then will this work? Or am i totally wrong? Just started editing this morning. And i really appreciate you help. Winky Winky
You must login or register to view this content.
You must login or register to view this content.
Thanks.

---------- Post added at 05:40 PM ---------- Previous post was at 05:37 PM ----------



EDIT. Just saw your code. Should i use that?


Just use the code Mossy gave you. Also why do you put


Freezer(pick)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo