Two Erroros Undefine Symbol
#4

I am a Noob lol
its not working the textdraw is not showing in the game
and i want like this
it should show a textdraw
HOURS:MINUTES:SECONDS

like this it should show

pawn Код:
CMD:count(playerid, params[])
{
    new minutes, seconds, hours;
    if(!sscanf(params,"iii", seconds, minutes, hours))
    {
        TextDrawShowForPlayer(playerid, MyTd);
        CountDown(MyTd, playerid, time);
    }
    else SendClientMessage(playerid, ERROR,"Usage: /count [seconds][minutes][hours]");
    return 1;
}
forward CountDown(Text: text, playerid, time);
public CountDown(Text: text, playerid, time) {
    if(time < 1) {
        TextDrawSetString(text, "~r~GoGo!");
        SetTimerEx("tTextDrawHide", 5000, false, "ii", playerid, _: text);
    } else {
        new
            str[8] = "~r~";
        valstr(str[3], time, false);
        TextDrawSetString(text, str);
        SetTimerEx("CountDown", 1000, false, "iii", _: text, playerid, --time);
    }
}
forward tTextDrawHide(playerid, Text: text);
public tTextDrawHide(playerid, Text: text) {
    if(playerid == MAX_PLAYERS) {
        TextDrawHideForAll(text);
    } else {
        TextDrawHideForPlayer(playerid, text);
    }
}
Reply


Messages In This Thread
Two Erroros Undefine Symbol - by Spooky - 04.01.2012, 08:56
Re: Two Erroros Undefine Symbol - by #Pwn. - 04.01.2012, 09:06
Re: Two Erroros Undefine Symbol - by Spooky - 04.01.2012, 09:16
Re: Two Erroros Undefine Symbol - by Spooky - 04.01.2012, 09:25
Re: Two Erroros Undefine Symbol - by Spooky - 04.01.2012, 09:49
Re: Two Erroros Undefine Symbol - by Spooky - 04.01.2012, 14:13
Re: Two Erroros Undefine Symbol - by Stigg - 04.01.2012, 14:18
Re: Two Erroros Undefine Symbol - by Spooky - 04.01.2012, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)