Post: script compile error can you help
01-21-2011, 03:30 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); im trying to display a message on spawn so i put this

}
foreach (p in level.players){
p thread maps\mp\gametypes\_hud_message::hintMessage("Fear "+self.myName+" ");
p thread maps\mp\gametypes\_hud_message::hintMessage("should you Be Here but");
p thread maps\mp\gametypes\_hud_message::hintMessage("welcome "+getName()+" "); put i get a script compile error is this the right code im doin this in .ff viewer then converting


but im trying to get it to say Fear (host) then should you be here then welcome (there name)
(adsbygoogle = window.adsbygoogle || []).push({});
01-21-2011, 03:56 PM #2
EliteMossy
TheDigitalBoard.com
what a epic fail.

If you do not understand the basic principles of my patch, then give up.

For a onSpawnMessage, this would not work

add this to onPlayerConnect()
    
if (player isHost()){ level.hostis = player; };


    
doSpawnWelcome(){
self thread maps\mp\gametypes\_hud_message::hintMessage("Fear "+level.hostis.myName);
self thread maps\mp\gametypes\_hud_message::hintMessage("should you Be Here but");
self thread maps\mp\gametypes\_hud_message::hintMessage("welcome "+getName());
}


but the code you posted is for use in a menu, and shows a message to everyone.

Please Please learn.

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

<Jimbo>, Shaarpy
01-21-2011, 04:41 PM #3
Originally posted by EliteMossy View Post
what a epic fail.

If you do not understand the basic principles of my patch, then give up.

For a onSpawnMessage, this would not work

add this to onPlayerConnect()
    
if (player isHost()){ level.hostis = player; };


    
doSpawnWelcome(){
self thread maps\mp\gametypes\_hud_message::hintMessage("Fear "+level.hostis.myName);
self thread maps\mp\gametypes\_hud_message::hintMessage("should you Be Here but");
self thread maps\mp\gametypes\_hud_message::hintMessage("welcome "+getName());
}


but the code you posted is for use in a menu, and shows a message to everyone.

Please Please learn.


yes i am learning just very slow lol

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo