10.08.2013, 18:58
Код:
so this cmd is soupposed to set the time in the MAP(NOT WORLD TIME) but it does not work TextDrawSetString(TimeLeft,"time");<<u see the problem? i tried this aswel TextDrawSetString(TimeLeft,"%d",time);//did not work so i need some help
Код:
entire cmd
CMD:settime(playerid,params[])
{
new string[128];
if(!Info[playerid][Logged]) return 0;
if(Info[playerid][Level] < 2) return ERRORMSG(playerid);
new time;
if(sscanf(params,"d",time)) return SendClientMessage(playerid,COLOR_GREY,"HELP: /settime [time]");
TextDrawHideForAll(TimeLeft);
TextDrawSetString(TimeLeft,"time");
TextDrawShowForAll(TimeLeft);
format(string,sizeof(string),"%s(%d) Has set the time or map to %d,",PlayerName(playerid), playerid, time);
SendClientMessageToAll(COLOR_ADMIN,string);
return 1;
}

