(adsbygoogle = window.adsbygoogle || []).push({});
Well if you have made a patch, you know how annoying those errors can be. The worst part, is it doesn't explain a good job of what error it is. So I am here to explain them to you to help you find them easier.
Bad Syntax:
This usually means that brackets, or the argument is missing
self iPrintlnBold("Hello";
The ")" is missing at the end of that and that will give syntax error.
Unknown Function
This errors happens when a game can't call a specified thread, or argument.
self thread doAsains();
doAsain()
{
//stuff
}
As you can see it's doAsains, and not doAsain therefore the game cannot find the thread/argument.
Bad Token:
This happens when a text variable is missing a ".
if(self.name == "george);
the other " for the text variable is missing after george, and will error.
No free g_spawn:
]
This is simple when the map is maxed out with spawns, and you create another
(This usually happens to bad coding)
doHi()
{
self endon("death");
for(;
{
lol = spawn("script_model", (0,0,0);
lol setModel("com_teddy_bear");
}
}
As you can seen, it's being created in the for loop, and therefore being created like every 0.00001 seconds going over the 30(?) limit.
Maximum Child Scripts
This really only happens on pc :/ but this is when you go into a "sub" thread too many times.
self waittill("spawned");
self thread doA();
doA()
{
doB();
}
doB()
{
doC();
}
doC()
{
self iPrintlnBold("CRAP!");
}
As you can see it just keeps going down :/
Uninitialized Variable
This happens when a call a variable that hasn't been created yet
something()
{
self.black = 1;
if(self.asain == 0)
{
self.win = "yes";
}
}
As you can see, self.asain was not initiliazed, and therefore it cannot tell what the value of it is. to fix you would do this
something()
{
self.asain = 1;
if(self.asain == 0)
{
self.win = "yes";
}
}
If you have any more errors you would like explained just let me know, im feeling kinda retarded and just woke up, so I probably forgot a main one.