SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 12/03/2010, 01:10 PM   #1
Join Date: Jan 2010
Posts: 1,783
Reputation: 1
Default How to check if player enters 4 digits?

How would i check if a player entered 4 digits in the dialog?
It needs to be 4 digits, And if he dosent enter 4 digits it sends error message?
So basically i just want to know if he dosent enter 4 digits in the dialog
Torran is offline  
Old 12/03/2010, 01:12 PM   #2
¤Adas¤'s Avatar
Join Date: Jan 2010
Posts: 570
Reputation: 26
Default Re: How to check if player enters 4 digits?

if(!IsNumeric(inputtext) || strlen(inputtext) != 4) WARNING....
¤Adas¤ is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make gametext when player enters a pickup Antonio [G-RP] Help Archive 4 08/08/2009 03:15 AM
Player not detected when he enters the vehicle? Yoyoyo Help Archive 4 26/06/2009 03:48 AM
Help - Show message when Player enters an area nickbugun Help Archive 3 12/04/2009 03:40 PM
When player enters driver seat? Salmon Help Archive 2 15/02/2009 02:29 PM
When player Enters! Static_X Help Archive 23 02/02/2009 08:55 PM

All times are GMT. The time now is 01:24 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.