frogot how to use timers
#1

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
Reply
#2

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;
}
Reply
#3

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?
Reply
#4

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?
Reply
#5

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
Reply
#6

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
Reply
#7

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
Reply
#8

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
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)