var and text
Moderator: Moderators
var and text
Can i put string of text in a var?
ok, im using the constant array like this -
local.t = this::is:
:test
iprintln local.t[1] " " local.t[2] " " local.t[3] " " local.t[4]
and it works in its own thread but how do i get it to the global.scr
I get nil nil nil nil
i tried -
local.t = this::is:
:test
setcvar testpass local.t
exec global/testing.scr
///////and in global
local.t = (int(getcvar testpass))
iprintln local.t[1] " " local.t[2] " " local.t[3] " " local.t[4]
result is nil nil nil nil
local.t = this::is:
iprintln local.t[1] " " local.t[2] " " local.t[3] " " local.t[4]
and it works in its own thread but how do i get it to the global.scr
I get nil nil nil nil
i tried -
local.t = this::is:
setcvar testpass local.t
exec global/testing.scr
///////and in global
local.t = (int(getcvar testpass))
iprintln local.t[1] " " local.t[2] " " local.t[3] " " local.t[4]
result is nil nil nil nil
Is this to have the console automatically print messages in the game? If so, could you give me a "Global for Dummies" version of those instructions?
I'm finally getting some custom maps on our server and I want it to regularly nag the players to download the new maps from our website.
But I've never done any server admin stuff before nor messed with any global scripting.
I'm finally getting some custom maps on our server and I want it to regularly nag the players to download the new maps from our website.
But I've never done any server admin stuff before nor messed with any global scripting.
Diego
make a global.scr - call it something like
myglobalstuff.scr
in all your map .scrs add this line just above the level waittil spawn
put this in myglobalstuff.scr
and make sure you put this in global folder
the cool thing is when you want to add something to all your maps -
now you need just to do it once - thread it from the main.
myglobalstuff.scr
in all your map .scrs add this line just above the level waittil spawn
Code: Select all
exec global/myglobalstuff.scr
Code: Select all
main:
thread messages
end
messages:
while(1)
{
wait 300
iprint "get the custom map paks you big dummies they are free !"
}
endthe cool thing is when you want to add something to all your maps -
now you need just to do it once - thread it from the main.
ive seen stock map script available for download somewhere... cant remember? anyways.. if you cant find them look in pak5.pk3 for aa.
extract the ones you want and file them like so -
maps/dm
maps/obj
global
then put them in your own pk3 and name them something like -
zzzzz-mymods.pk3
then they will load last.
extract the ones you want and file them like so -
maps/dm
maps/obj
global
then put them in your own pk3 and name them something like -
zzzzz-mymods.pk3
then they will load last.
all stock map scripts are in the pak files, otherwise the maps wont work.ive seen stock map script available for download somewhere... cant remember
HOWEVER: i just learned today that noobux, er, linux, loads pk3 files backwards. while hopefully not many server are cursed with such an OS, you'll want to make a Linux version for the people who dont use Windows.
aaa_myModName.pk3 - Linux
zzz_myModName.pk3 - Windows
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
