Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help!! :(
#1
This is my code it just gives me a syntax error:(

It gives me this when i try to load a game: Server script compile error bad syntax

onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self takeallweapons();
if(self.team == "axis")
{
self setperk ("specialty_fastreload");
self giveWeapon ( "knife_ballistic_mp");
self switchToWeapon("knife_ballistic_mp");
self thread JumpersAmmo();
self doClientDvar("jump_height", 39 );
self thread maps\mp\gametypes\_hud_message::hintMessage("^1You are now a Jumper!" );
}
if(self.team == "allies")
{
self setperk "(specialty_fastreload");
self setperk "(speciality_movefaster");
self giveWeapon ( "m14_grip_silencer_mp");
self switchToWeapon("m14_grip_silencer_mp");
self SetWeaponAmmoStock( "m14_grip_silencer_mp", 69 );
self clearPerks();

self thread maps\mp\gametypes\_hud_message::hintMessage("^1You are now a Hacker!" );


}
}
}
// Refills jumpers ammo.
JumpersAmmo()
{
self endon("disconnect");
self endon("death");
for(;;)
{
self giveMaxAmmo("knife_ballistic_mp");
wait 2.0;
}
}
Reply

#2
Stop creating double threads.
Code:
... blalbla
self setperk "(specialty_fastreload");
self setperk "(speciality_movefaster");

blab.........

Wot, blind people, lol.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
why do you open another thread?
please wait till someone replies

http://www.itsmods.com/forum/Thread-Synt...?pid=89247

This thread has been moved to the boards archive.
Contact a moderator in case you want to contribute to this thread.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.