20.05.2010, 15:56
I create /time command and not working 
/time code:
Please help, fast 
//edit: I fix this problem.

/time code:
Код:
if(strcmp(cmd, "/time", true) == 0)
{
if(PlayerHasItem(playerid,"Zegarek"))
{
new godzina, minuta, sekunda;
gettime(godzina, minuta, sekunda);
new string[150];
format(string, sizeof(string), "Jest godzina %d:%d:%d.",godzina, minuta, sekunda);
SendClientMessage(playerid, COLOR_PURPLE, string);
ShowInventory(playerid);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nie posiadasz zegarka.");
}
return 1;
}

//edit: I fix this problem.

