2 questions. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 2 questions. (
/showthread.php?tid=297261)
2 questions. -
ZeQualX - 15.11.2011
1- I just saw a server where ppl could join using a name with symbols like "ґ" Example: John_Doй
> How could i do this?
2- Theres any way (sa-mp/pawn function) to get the name of the day like Friday or i have to do it by myself?
thanks
Re: 2 questions. -
Pharrel - 15.11.2011
1- idk
2-
pawn Код:
stock GetWeekDay()
{
new WeekDay[20];
switch(((gettime()+334800)/86400-(gettime()+334800)/86400/7*7))
{
case 0: WeekDay = "Sunday";
case 1: WeekDay = "Monday";
case 2: WeekDay = "Tuesday";
case 3: WeekDay = "Wednesday";
case 4: WeekDay = "Thursday";
case 5: WeekDay = "Friday";
case 6: WeekDay = "Saturday";
}
return WeekDay;
}
Re: 2 questions. -
wumpyc - 15.11.2011
if is "ґ" on e it's not a symbol
Re: 2 questions. -
ZeQualX - 15.11.2011
But how could i put those thing on the names?
and thanks pharrel