04.01.2012, 08:56
pawn Код:
CMD:count(playerid, params[])
{
TextDrawShowForPlayer(playerid, text);
CountDown(text, playerid, 5);
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);
}
}
ERRORS
[code]
E:\SA-MP\SA-MP SERVERS\My Projects\0.3d\DM,STUNT,RACE\Live Stunting(ENG) E:\SA-MP\SA-MP SERVERS\My Projects\0.3d\DM,STUNT,RACE\Live Stunting(ENG) [DM,STUNT,RACE,DERBY]\Server\gamemodes\1.0.pwn(1917) : warning 213: tag mismatch
E:\SA-MP\SA-MP SERVERS\My Projects\0.3d\DM,STUNT,RACE\Live Stunting(ENG) [DM,STUNT,RACE,DERBY]\Server\gamemodes\1.0.pwn(191

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
PLease Hlp