Checking space in a string
#1

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
Reply
#2

Make sure that the dialog ID is 0.
Reply
#3

the prob is not in the diaolog id
the probleme that i always get the error if there is a space or not
Reply
#4

fixed
sry for double posts
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)