01.09.2011, 09:00
i have find this 3 times in my script
Код:
if(response) { new namestring = strfind(inputtext, "_", true); new namestring1 = strfind(inputtext, "@", true); new namestring2 = strfind(inputtext, "!", true); new namestring3 = strfind(inputtext, ".", true); new namestring4 = strfind(inputtext, "(", true); new namestring5 = strfind(inputtext, ")", true); new namestring6 = strfind(inputtext, "[", true); new namestring7 = strfind(inputtext, "]", true); new namestring8 = strfind(inputtext, "1", true); new namestring9 = strfind(inputtext, "2", true); new namestring10 = strfind(inputtext, "3", true); new namestring11 = strfind(inputtext, "4", true); new namestring12 = strfind(inputtext, "5", true); new namestring13 = strfind(inputtext, "6", true); new namestring14 = strfind(inputtext, "7", true); new namestring15 = strfind(inputtext, "8", true); new namestring16 = strfind(inputtext, "9", true); new namestring17 = strfind(inputtext, "0", true); if(namestring == -1 && namestring1 != -1 && namestring2 != -1 && namestring3 != -1 && namestring4 != -1 && namestring5 != -1 && namestring6 != -1 && namestring7 != -1 && namestring8 != -1 && namestring9 != -1 && namestring10 != -1 && namestring11 != -1 && namestring12 != -1 && namestring13 != -1 && namestring14 != -1 && namestring15 != -1 && namestring16 != -1 && namestring17 != -1) { if(PlayerInfo[playerid][pVipRank] > 2) { new stringo[128]; format(stringo,sizeof(stringo),"%s.ini",inputtext); if(fexist(stringo)) { SendClientMessage(playerid,COLOR_GREY,"Acest nume este deja inregistrat"); new rpnick[256+1]; format(rpnick,256,"{ffffff}Atentie!\n\nNumele tau nu a trecut controlul RP\nNumele rp trebuie sa fi Nume_Prenume\n\nExemplu:\nAlexsand_Jonson, Petr_Ivanov si altele\n\nIntroduceti numele in spatiu"); ShowPlayerDialog(playerid,175,DIALOG_STYLE_INPUT,"{F81414}Schimbarea numelui",rpnick,"Schimba","Renunta"); return 1; }