New line checker using strfind - 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: New line checker using strfind (
/showthread.php?tid=520754)
New line checker using strfind -
qmnty - 20.06.2014
Can i get /n function from strfind.
Like this. . .
pawn Код:
format(string, 128, "%s", inputtext);
if(strfind(string, "/n", true) != -1)
{
strins(string, "/n", strfind(string, "/n", true) != -1);
SetObjectMaterialText(servertext, string, 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 24, 1, 1, 0, 0);
}
Re: New line checker using strfind -
Vince - 20.06.2014
It's \n for a new line, not /n. But yes, I suppose that would be possible.
Re: New line checker using strfind -
qmnty - 20.06.2014
Bad me . .
But can i make like that code. . .?