frogot how to use timers - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: frogot how to use timers (
/showthread.php?tid=84033)
frogot how to use timers -
Sal_Kings - 28.06.2009
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
Re: frogot how to use timers -
Grim_ - 28.06.2009
Made just now, untested
pawn Код:
//onplayercommandtext
if(strcmp(cmdtext, "/heal", true) == 0)
{
SetTimerEx("HealthPlayer", 5000, 1, "i", playerid);
SendClientMessage(playerid, color, "Medics on their way...");
return 1;
}
//at bottom
forward HealthPlayer(playerid);
public HealthPlayer(playerid)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, color, "Healed!");
return 1;
}
Re: frogot how to use timers -
shady91 - 28.06.2009
Quote:
Originally Posted by Sal_Kings
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
|
how did you forget to make timers was timers in older version of sa mp?
Re: frogot how to use timers -
Grim_ - 28.06.2009
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Sal_Kings
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
|
how did you forget to make timers was timers in older version of sa mp?
|
Ofcourse they were. As for him forgetting, sometimes you just forget things, you know?
Re: frogot how to use timers -
shady91 - 28.06.2009
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Sal_Kings
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
|
how did you forget to make timers was timers in older version of sa mp?
|
Ofcourse they were. As for him forgetting, sometimes you just forget things, you know?
|
lol yeah but could never forget someting as simple as timers lol
Re: frogot how to use timers -
Grim_ - 28.06.2009
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Sal_Kings
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
|
how did you forget to make timers was timers in older version of sa mp?
|
Ofcourse they were. As for him forgetting, sometimes you just forget things, you know?
|
lol yeah but could never forget someting as simple as timers lol
|
They're not so simple (especially Ex). When I started scripting, I completely fucked up every script I edited because of timers xD
Re: frogot how to use timers -
shady91 - 28.06.2009
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Sal_Kings
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
|
how did you forget to make timers was timers in older version of sa mp?
|
Ofcourse they were. As for him forgetting, sometimes you just forget things, you know?
|
lol yeah but could never forget someting as simple as timers lol
|
They're not so simple (especially Ex). When I started scripting, I completely fucked up every script I edited because of timers xD
|
lol what did you do wrong
Re: frogot how to use timers -
Grim_ - 28.06.2009
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Sal_Kings
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
|
how did you forget to make timers was timers in older version of sa mp?
|
Ofcourse they were. As for him forgetting, sometimes you just forget things, you know?
|
lol yeah but could never forget someting as simple as timers lol
|
They're not so simple (especially Ex). When I started scripting, I completely fucked up every script I edited because of timers xD
|
lol what did you do wrong
|
Put the wrong seconds, put the wrong case (repeating?), put the wrong callback to call, put the wrong format(for SetTimerEx). I did just about all you could do wrong. Why? I don't know, I just did xD
Re: frogot how to use timers -
shady91 - 28.06.2009
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Swift_
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Sal_Kings
didn't script for a long time
anyone mind copying pasting a compelte script of when you type /heal it sets a timer for 5 seconds then it heals u
thx
|
how did you forget to make timers was timers in older version of sa mp?
|
Ofcourse they were. As for him forgetting, sometimes you just forget things, you know?
|
lol yeah but could never forget someting as simple as timers lol
|
They're not so simple (especially Ex). When I started scripting, I completely fucked up every script I edited because of timers xD
|
lol what did you do wrong
|
Put the wrong seconds, put the wrong case (repeating?), put the wrong callback to call, put the wrong format(for SetTimerEx). I did just about all you could do wrong. Why? I don't know, I just did xD
|
lol i have lil problem when i first started but that was as i didnt no it was mili seconds how stupid was i lol but its all makes sence now lol but yeah i suspose settimerEx would be hard to remember maybe after like 3 years of not making t