Problem
#2

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
Let me give you a tip for bug finding:

Put a 'print' between on every 10th line where you think the problem is.

like:
pawn Код:
print("1");
somecode();
somecode();
print("2");
somecode();
somecode();
print("3");
If on the console it only prints 1 and 2, you know the problem is somewhere between 2 and 3

So investigate further...


Put a print in between each line of code between these points [you can delete the other prints to avoid confusion]
pawn Код:
print("1");
code...
print("2");
code...
print("3");
-problem code-
print("4");
code...
print("5");
Console will print 1, 2, 3, 4 so you know that the problem is with the code between 4 and 5

Now you can found out exactly what line is causing the problem, then you post on the forum and it helps people help you

Tip: If the console crashes before you can read it, check the "server_log.txt" all prints are saved here.
Thanks , it's definitely when I use it under the teleport command.
so it's
pawn Код:
VehicleLoad(playerid);
and the whole function aswell , is a problem too
Reply


Messages In This Thread
Problem - by Jay. - 25.06.2011, 11:46
Re: Problem - by Jay. - 25.06.2011, 11:56
Re: Problem - by Jay. - 25.06.2011, 12:06
Re: Problem - by Jay. - 25.06.2011, 12:47
Re: Problem - by iPLEOMAX - 25.06.2011, 15:19
Re: Problem - by Jay. - 25.06.2011, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)