27.08.2011, 09:08
Quote:
RyDeR's you have any sever ?
send for my in PM. _________________ UpToLower In Macros: following the post of RyDeR's i'm create this: <code> INT: FORUM SA-MP OUT: forum sa-mp StrToUpper <code> Int: forum sa-mp Out: FORUM SA-MP Credts: me. |
Also, there's a more basic way to do that. Here if you're interested:
pawn Код:
#define strToUpper(%0) \
for(new i; %0[i] != EOS; ++i) \
%0[i] = ('a' <= %0[i] <= 'z') ? (%0[i] += 'A' - 'a') : (%0[i])
pawn Код:
#define strToLower(%0) \
for(new i; %0[i] != EOS; ++i) \
%0[i] = ('A' <= %0[i] <= 'Z') ? (%0[i] += 'a' - 'A') : (%0[i])