SA-MP Forums Archive
help - 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: help (/showthread.php?tid=275553)



help - Braz_y - 10.08.2011

anyone know how to remove uppercase (N).


Re: help - Grim_ - 10.08.2011

What do you mean? Removing an upper-case letter N in a string?
pawn Код:
new pos = strfind( string, "N", false );
if( pos != -1 ) strdel( string, pos, pos + 1 );



Respuesta: help - Braz_y - 10.08.2011

only able to use lower case letters.


Re: help - Grim_ - 10.08.2011

pawn Код:
tolowerx( string[ ] )
{
   for( new i = 0; i < strlen( string ); i++ )
   {
      tolower( string[ i ] );
   }
   return string;
}



Respuesta: help - Braz_y - 10.08.2011

not working.


Re: help - Grim_ - 10.08.2011

I could really go with some more details than just it's not working. If you're not going to put any effort into finding out WHY it's not working, I'm not going to either.

How are you using the function?


Respuesta: help - Braz_y - 10.08.2011

I can not use the example uppercase Braz Y: N and becomes a (n)