Jump to content

script WeekDay


Ewwe

Recommended Posts

  • Administrátor
Zdarec 

Tak mě napadlo že bych se pochlubil prvním pluginem pro SA-MP.

Je psaný v C++ a zkompilovaný pro windows :)

 

Tenhle plugin je čistě ukázkový a využití v podstatě nemá pro funkci tohoto pluginu existuje jednoduchá alternativa v pawn...

Instalace :
server.cfg >> plugins Win32Project1
 
PAWN :
native GetCurrentWeekDay();
native GetCurrentWeekDayEx(string[],len);
Usage:
printf("Dnes je %i. v týdnu",GetCurrentWeekDay());
//0 - Neděle
//1 - Pondělí
//2 - Úterý
//3 - Středa
//4 - Čtvrtek
//5 - Pátek
//6 - Sobota
 
new string[32];
GetCurrentWeekDayEx(string,sizeof(string));
printf("Dnes je %s",string));


Link to comment
Share on other sites

  • Administrátor

Dobrá práce .. možná využiju, např. pro /Datum :) Neděle 27.7.

Na to je lepší pure pawn funkce .... Tenhle plugin je jen takovej první pokus 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...