Capitalizing letters.... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Capitalizing letters.... (
/showthread.php?tid=203097)
Capitalizing letters.... -
1337connor - 26.12.2010
pawn Код:
stock Capitalize(letter[])
{
switch(letter)
{
case a:
return A;
case b:
return B;
case c:
return C;
case d:
return D;
case e:
return E;
case f:
return F;
case g:
return G;
case h:
return H;
case i:
return I;
case j:
return J;
case k:
return K;
case l:
return L;
case m:
return M;
case n:
return N;
case o:
return O;
case p:
return P;
case q:
return Q;
case r:
return R;
case s:
return S;
case t:
return T;
case u:
return U;
case v:
return V;
case w:
return W;
case x:
return X;
case y:
return Y;
case z:
return Z;
}
}
Would this be possible in another way?
Re: Capitalizing letters.... -
Sergei - 26.12.2010
Sure.
And you code wouldn't even work.
Re: Capitalizing letters.... -
1337connor - 27.12.2010
Quote:
Originally Posted by Sergei
Sure.
And you code wouldn't even work.
|
I know it wouldn't. Lol. Thanks for the toupper thing.. didn't even know that existsed.. O.o