Quote:
Originally Posted by gr56
pawn Код:
new full = strlen(inputtext); for(new i = 0; i < full; i++) { if(IsNumeric(inputtext[i])) { SendClientMessage(playerid, 0xFFFFFFFF, "Your Firstname Cannot Contain Numbers or be Blank Text Only"); ShowPlayerDialog(playerid,5,DIALOG_STYLE_INPUT,"Firstname","What is your firstname?","Submit","Cancel"); return 0; } }
pawn Код:
stock IsNumeric(string[]) { for (new i = 0, j = strlen(string); i < j; i++) { if (string[i] > '9' || string[i] < '0') return 0; } return 1; }
|
Hmm I never did much with stocks Could you explain how to do that better if i done them right i got errors for both ideals sorry i wished it worked ...