How to delete the first 2 chars of a string? - 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: How to delete the first 2 chars of a string? (
/showthread.php?tid=66561)
How to delete the first 2 chars of a string? -
x-cutter - 22.02.2009
How to delete the first 2 characters of a string?
Thanks
Re: How to delete the first 2 chars of a string? -
yom - 22.02.2009
pawn Код:
//strdel(string[], start, end);
strdel("string", 0, 2);
// "ring"
Or if you just want to read the string from third character, just do for example:
pawn Код:
new string[] = "string";
print(string[2]);
//will print "ring"
Re: How to delete the first 2 chars of a string? -
x-cutter - 22.02.2009
Thanks alot :P
I give you a cookie