25.07.2011, 05:21
When you are trying to run a particular function and it doesn't happen, you can always use print/prinf/sendclientmessage to the steps of the function to see which part isn't working.
An Example:
An Example:
pawn Код:
//some timer:
SetTimer("DoFirstThing", 1000, true);
forward DoFirstThing();
public DoFirstThing()
{
print("Timer works, started first thing...");
DoSecondThing();
}
DoSecondThing()
{
print("second thing done!");
DoThirdThing(914);
}
DoThirdThing(value)
{
printf("third thing done! Input Value: %i", value);
}