03.04.2015, 15:13
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; } }