Check if player input letters
#1

How to check if a player input letters instead of numbers in dialog box, Is there any function for that? or do I need to make an array then check for it?
Reply
#2

https://sampwiki.blast.hk/wiki/OnDialogResponse

https://sampwiki.blast.hk/wiki/Format
Reply
#3

PHP код:
for (new strlen(inputtext) - 1!= -1i--){
    if (
inputtext[i] >= '0' && inputtext[i] <= '9'){
        
// if player inputted numbers
        
continue;
    }
    else{
        
// if player inputted not numbers
    
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)