Checking space in 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: Checking space in a string (
/showthread.php?tid=125120)
Checking space in a string -
m0niSx - 02.02.2010
hi, as you see in the title a have a string like this
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(!response) return 0;
if(dialogid == 0)
{
if(strfind(inputtext, " "))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You cannot put space !");
return 1;
}
}
}
but with or without the space i always got the message error, so i'm asking if someone knows how to check if there is a space in a string
Re: Checking space in a string -
¤Adas¤ - 02.02.2010
Make sure that the dialog ID is 0.
Re: Checking space in a string -
m0niSx - 02.02.2010
the prob is not in the diaolog id
the probleme that i always get the error if there is a space or not
Re: Checking space in a string -
m0niSx - 02.02.2010
fixed
sry for double posts