Post: Bad syntax
01-17-2011, 11:16 PM #1
Shieldsy
I <3 Feeder.
(adsbygoogle = window.adsbygoogle || []).push({}); Everytime I try to edit a patch I get bad syntax.

I am usually trying to add things to the menu, but I am new to coding and can't tell where I am going wrong.

            menu.name[menu.name.size] = "Do what to player?"; 
menu.name[menu.name.size] = "Kick";
menu.name[menu.name.size] = "Freeze";
menu.name[menu.name.size] = "Derank";
menu.name[menu.name.size] = "Give 100 cash";
menu.name[menu.name.size] = "Suicide Player";
menu.name[menu.name.size] = "Unlock All";
menu.name[menu.name.size] = "Instant 70";
menu.name[menu.name.size] = "Admin player";
menu.name[menu.name.size] = "Teleport";

menu.function[menu.function.size+1] = ::kickPlayer;
menu.function[menu.function.size+1] = ::plFr;
menu.function[menu.function.size+1] = :Happyerankz;
menu.function[menu.function.size+1] = ::gicasho;
menu.function[menu.function.size+1] = ::suip;
menu.function[menu.function.size+1] = ::unlck;
menu.function[menu.function.size+1] = ::pl70;
menu.function[menu.function.size+1] = ::cohost;
menu.function[menu.function.size+1] = ::tptome;

menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;
menu.input[menu.input.size+1] = self.input;


Here is the menu i have edited from Sofeball's edit of Zombieland 2.2
As you can see I tried to add a teleport to me option, and switched around the options so it makes more sense for me.

Teleport code (credit to DEREKTROTTER)
    tptome()
{ self iPrintln("^3Teleported "+p.name+" to Me");p SetOrigin(self.origin);}


Can someone please tell me where I am going wrong. I do not want someone to fix this and hand it back to me saying here you go, I want to know where and how i went wrong.
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo