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, 02:10 PM   #1
Torran
High-roller
 
Join Date: Jan 2010
Posts: 1,793
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, 02:12 PM   #2
¤Adas¤
Gangsta
 
¤Adas¤'s Avatar
 
Join Date: Jan 2010
Posts: 564
Reputation: 21
Default Re: How to check if player enters 4 digits?

pawn Code:
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 03:29 PM
When player Enters vehicle...help! Static_X Help Archive 23 02/02/2009 09:55 PM


All times are GMT. The time now is 05:39 AM.


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