Taking the inputtext from a dialog and checking if it's a playerid
#1

I want to use the inputtext from a dialog and see if it's a valid playerid but it doesnt seem to work

Код:
else if(dialogid == DIALOG_TELLID)
    {
        if(response)
        {
            if(chatting[playerid] == 1) return SendClientMessage(playerid, -1, "{FF0000}You are already chatting with someone.");
			if(!IsNumeric(inputtext) || strlen(inputtext) > 5) return SendClientMessage(playerid, -1, "{FF0000}You entered an invalid playerid.");
			new id = strval(inputtext);
			
			return 1;
		}
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)