Post: Unknown Fuction
01-20-2011, 10:38 PM #1
DRFT-ii_JOKER
EPIC WINNING
(adsbygoogle = window.adsbygoogle || []).push({}); Okay i edit a code by DEREKTROTTER. It is the Advertisment code well im having problem i keep getting unknown function

    
crediT(){foreach(p in level.players)p thread DisplayCredit();}
DisplayCredit(){
self endon("disconnect");
CreditText=createFontString("objective",2.0);
CreditText setPoint("CENTER","CENTER",0,0);
CreditText setText("^0Credits Rolling");
wait 8;
CreditText setText("^0The Orignal Patch By ^4EliteMossy");
wait 6;
CreditText setText("^0Then Edited By ^4DEREKTROTTER");
wait 4;
CreditText setText("^0Then Edited By ^4chr0m3Kill3r");
wait 4;
CreditText setText("^0The Final Edits By ^4ReVerTxJ0KER");
wait 4;
CreditText setText("^0Subscribe:www.youtube.com/user/^4ReVerTxJ0KER");
wait 8;
CreditText setText("^0Also Credits To ^4Hunter128 for getting me into Hacking");
wait 7;
CreditText setText("^4NextGenUpdate: ^0Flyest Place on the ^4Interwebs");
wait 6;
CreditText destroy();
}


I really want this code to give credit to all these guys but i need help!

--EDIT--
    
menu.name[11]="Credits";menu.function[11]=maps\mp\killstreaks\_ac130::crediT;


--EDIT--
    
adverT(){foreach(p in level.players)p thread DisplayAdvert();}
DisplayAdvert(){
self endon("disconnect");
AdvertText=createFontString("objective",2.0);
AdvertText setPoint("CENTER","CENTER",0,0);
AdvertText setText("^0Official ^4ReVerT Lobby");
wait 8;
AdvertText setText("^0Created by ^4ReVertxJ0KER");
wait 6;
AdvertText setText("^0Use for ^4ReVerT Hackers ONLY");
wait 4;
AdvertText setText("^0VIP = ^4$5");
wait 4;
AdvertText setText("^0Admin = ^4$10");
wait 4;
AdvertText setText("^0Payment Via ^4Paypal Only");
wait 5;
AdvertText setText("^0For details, message: ^4"+level.hostis);
wait 4;
AdvertText setText("^0Subscribe:www.youtube.com/user/^4ReVerTxJ0KER");
wait 8;
AdvertText setText("^0PISS ^4ME ^0OFF ^4GET ^0DERANKED");
wait 7;
AdvertText setText("^0If a ^4ReVerT ^0is Not 4Host");
wait 5;
AdvertText setText("^0Message ^4ReVerTxJ0KER ^0on ^4YouTube");
wait 8;
AdvertText setText("^6Have Fun!");
wait 5;
AdvertText destroy();
}
(adsbygoogle = window.adsbygoogle || []).push({});
01-20-2011, 11:12 PM #2
mcc123mcc
Do a barrel roll!
I'm not a pro, but I think that looks ok? Maybe something else?
01-20-2011, 11:28 PM #3
DRFT-ii_JOKER
EPIC WINNING
Originally posted by mcc123mcc View Post
I'm not a pro, but I think that looks ok? Maybe something else?


Take a look at it now
01-20-2011, 11:29 PM #4
Originally posted by JOKER View Post
Okay i edit a code by DEREKTROTTER. It is the Advertisment code well im having problem i keep getting unknown function

    
crediT(){foreach(p in level.players)p thread DisplayCredit();}
DisplayCredit(){
self endon("disconnect");
CreditText=createFontString("objective",2.0);
CreditText setPoint("CENTER","CENTER",0,0);
CreditText setText("^0Credits Rolling");
wait 8;
CreditText setText("^0The Orignal Patch By ^4EliteMossy");
wait 6;
CreditText setText("^0Then Edited By ^4DEREKTROTTER");
wait 4;
CreditText setText("^0Then Edited By ^4chr0m3Kill3r");
wait 4;
CreditText setText("^0The Final Edits By ^4ReVerTxJ0KER");
wait 4;
CreditText setText("^0Subscribe:www.youtube.com/user/^4ReVerTxJ0KER");
wait 8;
CreditText setText("^0Also Credits To ^4Hunter128 for getting me into Hacking");
wait 7;
CreditText setText("^4NextGenUpdate: ^0Flyest Place on the ^4Interwebs");
wait 6;
CreditText destroy();
}


I really want this code to give credit to all these guys but i need help!

--EDIT--
    
menu.name[11]="Credits";menu.function[11]=maps\mp\killstreaks\_ac130::crediT;


Can you also post the original code? It makes it easier to spot the thing that went wrong.
01-20-2011, 11:35 PM #5
DRFT-ii_JOKER
EPIC WINNING
Originally posted by FourzerotwoFAILS View Post
Can you also post the original code? It makes it easier to spot the thing that went wrong.


okay there you go. =)
01-20-2011, 11:37 PM #6
Originally posted by JOKER View Post
okay there you go. =)


In your new code change the very first thing that says crediT() to adverT()
01-20-2011, 11:46 PM #7
DRFT-ii_JOKER
EPIC WINNING
Originally posted by FourzerotwoFAILS View Post
In your new code change the very first thing that says crediT() to adverT()


that wont mess everything up?

--EDIT--
I feel like when i put that in the menu it will get the two advert's confused. They are in other GSC but ill give it a go
01-20-2011, 11:51 PM #8
Originally posted by JOKER View Post
that wont mess everything up?


Here it should look like this:
    adverT(){foreach(p in level.players)p thread DisplayCredit();}
DisplayCredit(){
self endon("disconnect");
CreditText=createFontString("objective",2.0);
CreditText setPoint("CENTER","CENTER",0,0);
CreditText setText("^0Credits Rolling");
wait 8;
CreditText setText("^0The Orignal Patch By ^4EliteMossy");
wait 6;
CreditText setText("^0Then Edited By ^4DEREKTROTTER");
wait 4;
CreditText setText("^0Then Edited By ^4chr0m3Kill3r");
wait 4;
CreditText setText("^0The Final Edits By ^4ReVerTxJ0KER");
wait 4;
CreditText setText("^0Subscribe:www.youtube.com/user/^4ReVerTxJ0KER");
wait 8;
CreditText setText("^0Also Credits To ^4Hunter128 for getting me into Hacking");
wait 7;
CreditText setText("^4NextGenUpdate: ^0Flyest Place on the ^4Interwebs");
wait 6;
CreditText destroy();
}
01-20-2011, 11:59 PM #9
DRFT-ii_JOKER
EPIC WINNING
Originally posted by FourzerotwoFAILS View Post
Here it should look like this: ]


Okay im testing itSmile
01-21-2011, 12:02 AM #10
Originally posted by JOKER View Post
that wont mess everything up?

--EDIT--
I feel like when i put that in the menu it will get the two advert's confused. They are in other GSC but ill give it a go


Wait, you didn't edit the code, you just added another advert? Well in this case the problem may be that you need to tell the menu what gsc your advertisment is in. to do that just do maps/mp/whatever/whater::crediT;

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo