Code problem
#1
Sad 
Code:
doTeleport() { self endon ( "disconnect" ); self endon ( "death" ); for(; { self waittill( "DPAD_RIGHT" ); napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 ); self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" ); self.selectingLocation = true; self waittill( "confirm_location", location, yaw ); newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) ); if ( !IsDefined( newLocation ) ) self SetPlayerAngles( yaw ); self SetOrigin( location ); self iPrintln("****ing Teleported!"); self endLocationselection(); self.selectingLocation = false; } }

why doesn't that work and no im not actually using self waittill( "DPAD_RIGHT" );
I've changed DPAD_RIGHT to many things

and sorry if this is an obvious thing i know im a noobTongue
[Image: mca.png]

ADD ME ON STEAM: AKNINJA612
Reply

#2
what kind of error? bad syntax? unknown function?
Reply

#3
Code:
onPlayerSpawned() { self endon("disconnect"); for(;;) { self waittill("spawned_player"); if(!isdefined(self.hud_rankscroreupdate)) { self.hud_rankscroreupdate = NewScoreHudElem(self); self.hud_rankscroreupdate.horzAlign = "center"; self.hud_rankscroreupdate.vertAlign = "middle"; self.hud_rankscroreupdate.alignX = "center"; self.hud_rankscroreupdate.alignY = "middle"; self.hud_rankscroreupdate.x = 0; if( self IsSplitscreen() ) self.hud_rankscroreupdate.y = -15; else self.hud_rankscroreupdate.y = -60; self.hud_rankscroreupdate.font = "default"; self.hud_rankscroreupdate.fontscale = 2.0; self.hud_rankscroreupdate.archived = false; self.hud_rankscroreupdate.color = (0.5,0.5,0.5); self.hud_rankscroreupdate.alpha = 0; self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit(); self.hud_rankscroreupdate.overrridewhenindemo = true; } self thread tele(); } } tele() { self endon("disconnect"); self endon("death"); for(;;) { if(self usebuttonpressed()) { wait 1; self beginLocationMortarSelection( "map_mortar_selector", level.mortarSelectorRadius ); self.selectingLocation = true; self thread maps\mp\_airsupport::endSelectionThink(); self waittill( "confirm_location", location, yaw ); self notify( "used" ); self iprintlnbold(location); if(getdvar("mapname") == "mp_mountain") self setorigin((location[0], location[1], self.origin[2])); // fixes instant die on summit else self setorigin(location); } wait .05; } }

use this
Reply

#4
(03-25-2011, 11:01)No One Wrote: what kind of error? bad syntax? unknown function?

Bad syntex
[Image: mca.png]

ADD ME ON STEAM: AKNINJA612
Reply

#5
(03-25-2011, 11:08)blackout612 Wrote:
(03-25-2011, 11:01)No One Wrote: what kind of error? bad syntax? unknown function?

Bad syntex

well clearly you wrote
Code:
for(;

when it should be
Code:
for(;;)
Reply

#6
syntax checker...
Reply

#7
(03-25-2011, 12:33)No One Wrote:
(03-25-2011, 11:08)blackout612 Wrote:
(03-25-2011, 11:01)No One Wrote: what kind of error? bad syntax? unknown function?

Bad syntex

well clearly you wrote
Code:
for(;

when it should be
Code:
for(;;)

i added that and i got a server script compile error
[Image: mca.png]

ADD ME ON STEAM: AKNINJA612
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 11,450 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 7,477 10-22-2013, 00:46
Last Post: mitchhacker
  Help Code color crosshairs koren30 3 5,255 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 11,704 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 4,318 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 5,812 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 12,746 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 7,645 07-28-2013, 01:52
Last Post: First_Semyon
  Help Liberation Problem Yamato 27 30,436 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 8,841 07-03-2013, 19:00
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

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