• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help position
#1
Question 
guys why do I have this crap here-I'd say in the game !tp- in the console should write
server Print,yes no 1 problem
Code:
if (Message.ToLower().StartsWith("!tp"))
            {
                Entity entdefault = SpawnModel("script_model", "prop_flag_neutral", new Vector(locationX, locationY, locationZ));
                ent++;
                ServerPrint("Entity ent" + ent + " = SpawnModel(" + "script_model" + "," + "prop_flag_neutral" + "," + "new Vector(" + locationX + "f" + "," + locationY + "f" + "," + locationZ + "f" + "))" + ";");
                return ChatType.ChatNone;
            }
serverPrl say Entity ent1 = SpawnModel(script_model,prop_flag_neutral,new Vector(2793,679f,4393,263f,6760,508f));
bitch fucking bug- (2793,679f,4393,263f,6760,508f)); actually I correct it here so
(2793.679f,4393.263f,6760.508f)); how can I fix it? and not through the console and recorded the coordinates to a file .TXT,bug in "new Vector(" + locationX + "f" + "," + locationY + "f" + "," + locationZ + "f" + "))" + ";");
Away
  Reply
#2
F*ck TABs and spaces.

Code:
if (Message.ToLower().StartsWith("!tp"))
            {
        int locx, locy, locz;

                Entity entdefault = SpawnModel("script_model", "prop_flag_neutral", new Vector(locationX, locationY, locationZ));
                ent++;
        locx = Convert.ToInt32(locationX);
        locy = Convert.ToInt32(locationY);
        locz = Convert.ToInt32(locationZ);

                ServerPrint("Entity ent" + ent + " = SpawnModel(" + "script_model" + "," + "prop_flag_neutral" + "," + "new Vector(" + locz + "f" + "," + locy + "f" + "," + locz + "f" + "))" + ";");
                return ChatType.ChatNone;
            }

OR

HOW TO CONVERT FLOAT TO INT
C++ programmer. Neko engine wip
Steam: Click
[-] The following 1 user says Thank You to Nekochan for this post:
  • [HARD] Tony.
  Reply
#3
(05-14-2013, 17:59)SailorMoon Wrote: F*ck TABs and spaces.

Code:
if (Message.ToLower().StartsWith("!tp"))
            {
        int locx, locy, locz;

                Entity entdefault = SpawnModel("script_model", "prop_flag_neutral", new Vector(locationX, locationY, locationZ));
                ent++;
        locx = Convert.ToInt32(locationX);
        locy = Convert.ToInt32(locationY);
        locz = Convert.ToInt32(locationZ);

                ServerPrint("Entity ent" + ent + " = SpawnModel(" + "script_model" + "," + "prop_flag_neutral" + "," + "new Vector(" + locz + "f" + "," + locy + "f" + "," + locz + "f" + "))" + ";");
                return ChatType.ChatNone;
            }

OR

HOW TO CONVERT FLOAT TO INT
БОЛЬШОЕ СПАСИБО
Away
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  write flag position map [HARD] Tony. 4 769 05-30-2013, 10:05
Last Post: hillbilly
  HudElem Position Deviler86 7 1,164 08-04-2012, 16:19
Last Post: Nekochan

Forum Jump:


Users browsing this thread: 1 Guest(s)