PDA

View Full Version : help with creating time gap


akki
05/02/2013, 06:27 AM
hello i need help again please,
just like C++ we use delay function to give a timegap before the next line is read.
so is how to do that in pawno please tell me in detail
and also the header file that is to be used
please help

Ballu Miaa
05/02/2013, 06:39 AM
I do delays in pawn with by making a new public and calling it with SetTimerEx using the params if any!

akki
05/02/2013, 06:42 AM
I do delays in pawn with by making a new public and calling it with SetTimerEx using the params if any!

can you show me an example for this?

SilverKiller
05/02/2013, 07:08 AM
I'm on my tablet, but here is an example...

SetTimerEx("example", 1000, false, "i", playerid);

forward example(playerid);
public example(playerid)
{
SendClientMessageToAll(0xDEEE20FF, "example");
return 1;
}


This will send example message to all players after 1 second (1000 in set timer ex is the 1 second)