GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: Chris_Antonio - 2013. május 24. - 15:15:59

Cím: Idõ Parancs Probléma!
Írta: Chris_Antonio - 2013. május 24. - 15:15:59
Üdvözlök mindenkit!
ZCMD-be készítettem egy idõ parancsot melyben a dáturmot és az idõt mutatja. Mûködik szépen persze. Viszont akadt vele 1 kis problémám. Ahol a dátumot kéri ami áll év.hónap.napból. Például : 2013.5.24.
A hónap részét betûvel szeretném hogy, ki írja.
Például: Május, Június stb.
Ebben kérném a segítségeteket tõletek. A Válaszokat elõre is köszönöm. Itt a Kódrészlet:
 
CMD:ido(playerid, params[])
{
new year, month, day;
new hour, minute, second;
new string[24], stringx[24];
getdate(year, month, day);
format(string, sizeof(string), \"Ma %d.%d.%d. van.\", year, month, day);
SendClientMessage(playerid, FEHER_SZIN, string);
gettime(hour, minute, second);
format(stringx, sizeof(stringx), \"Jelenleg %d:%d:%d van.\", hour, minute, second);
SendClientMessage(playerid, FEHER_SZIN, stringx);
ApplyAnimation(playerid, \"COP_AMBIENT\",\"Coplook_watch\",4.1,0,0,0,0,0);
return 1;
}
Cím: Idõ Parancs Probléma!
Írta: ZyZu. - 2013. május 24. - 15:35:05
http://sampforum.hu/index.php?topic=25893.msg276107#msg276107
http://sampforum.hu/index.php?topic=25799.0
Cím: Idõ Parancs Probléma!
Írta: Zsolesszka - 2013. május 24. - 15:48:41
CMD:ido(playerid, params[])
{
new year, month, day;
new hour, minute, second;
new string[24], stringx[24];
new month_name[][] = { \"Január\", \"Február\", \"Március\", \"Április\", \"Május\", \"Június\", \"Július\", \"Augusztus\", \"Szeptember\", \"Október\", \"November\", \"December\" };
getdate(year, month, day);
format(string, sizeof(string), \"Ma %d.%s.%d. van.\", year, month_name[month - 1], day);
SendClientMessage(playerid, FEHER_SZIN, string);
gettime(hour, minute, second);
format(stringx, sizeof(stringx), \"Jelenleg %d:%d:%d van.\", hour, minute, second);
SendClientMessage(playerid, FEHER_SZIN, stringx);
ApplyAnimation(playerid, \"COP_AMBIENT\",\"Coplook_watch\",4.1,0,0,0,0,0);
return 1;
}
Cím: Idõ Parancs Probléma!
Írta: Chris_Antonio - 2013. május 27. - 18:12:18
Köszönöm mindketõttöknek össze raktam! Zárok Megy a plusz!