Having trouble running a mod i'm making.

ResonateBob

New Member
Messages
3
Reaction score
0
Points
1
I just starting getting into modding in World At War and trying to make mod menus and what not, and i'm starting with the basics. I came across a trouble i've been trying to fix. I am only doing a simple "iPrintln" command, but whenever i run the .gsc file on World At war it never does anything when i start up zombies. Any reason why, if you want me to elaborate on the situation, feel free to ask. Keep in mind i just starting this so it may be a simple mistake that can be easily fixed.
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
show use the code, because your explanation isn't really doing much.
 

ResonateBob

New Member
Messages
3
Reaction score
0
Points
1
show use the code, because your explanation isn't really doing much.
#include maps\_utility;
#include common_scripts\utility;
#include maps\_hud_util;
init()
{
precachestring( &"SCRIPT_PLATFORM_CHEAT_USETOSLOWMO" );
precacheShellshock( "chaplincheat" );
//smaller way to Precache anything.
//made by AoK MiKeY.


level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;:wink:
{
level waittill( "connected", player );
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
for(;:wink:
{
self waittill( "spawned_player" );
self SetClientDvar( "loc_warnings", "0" );
self SetClientDvar( "loc_warningsAsErrors", "0" );

self thread test();
}
}
/*
controls:
adsButtonPressed() < ads
attackButtonPressed() < shoot
useButtonPressed() < f (pc) / x
fragButtonPressed() < fragbutton
meleeButtonPressed() < melee button
*/
test() <------ the section i'm focusing on.
{
for(;:wink: //loop
{
if(self adsButtonPressed())
{
self thread test1("test");
}
if(self attackButtonPressed())
{
self thread test1("test1");
}
wait 0.01; // every frame
}
}
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
why are you threading a print? Just remove those lines completely and just do..
Code:
iprintln("scrolling up/down");
 
Top