Aller au contenu
San Andreas Multiplayer

Flolyon

Membres
  • Compteur de contenus

    2
  • Contenu moyen par jour

    0
  • Points

  • Inscription

  • Dernière visite

Réputation sur la communauté

0 Neutre

À propos de Flolyon

  • Rang
    Observateur

Visiteurs récents du profil

Le bloc de visiteurs récents est désactivé et il n’est pas visible pour les autres utilisateurs.

  1. Flolyon

    Problème checkname

    Merci beaucoup ! je vais test sa mais il est pas possible de modifier mon code simplement !?
  2. Bonjour je vous explique Samp version 0.3.7 aucun problème Mais lors de la passage de la 0.3Dl Il est possible de se connecter sur mon serveur de type Roleplay avec un simple nom Exemple : Mike Et mon serveur crash donc forcément des plaisantin s'amuse a me planter le serveur J'aimerais savoir pour faire une obligation de speudo avec le _ Ou autre mais que sa pacht la fail Le code : } new nameStr[MAX_PLAYER_NAME]; GetPlayerName(playerid,nameStr,sizeof(nameStr)); if(!check_name(nameStr,0)) { SendClientMessage(playerid, COLOR_STATS, "[Info] Nom invalide. Veuillez changer votre nom avec le format Prenom_Nom."); SendClientMessage(playerid, COLOR_USAGE, "[Info] Utiliser \"/q\" pour quitter."); Kick(playerid); return 1; ////////////////////// public check_name(newName[],checkSql) { new ValideName=true; if(strlen(newName) < 6 || strlen(newName) > MAX_PLAYER_NAME-1) {ValideName=false;} else if(check_sqlChar(newName)) {ValideName=false;} else if(strfind(newName,"²",true) != -1 || strfind(newName,",",true) != -1 || strfind(newName,";",true) != -1) {ValideName=false;} else if(strfind(newName,"!",true) != -1 || strfind(newName,"?",true) != -1 || strfind(newName,".",true) != -1) {ValideName=false;} else if(strfind(newName,"§",true) != -1 || strfind(newName,"+",true) != -1 || strfind(newName,"=",true) != -1) {ValideName=false;} else if(strfind(newName,")",true) != -1 || strfind(newName,"°",true) != -1 || strfind(newName,"-",true) != -1) {ValideName=false;} else if(strfind(newName,"(",true) != -1 || strfind(newName,"/",true) != -1 || strfind(newName,"&",true) != -1) {ValideName=false;} else if(strfind(newName,"@",true) != -1 || strfind(newName,"~",true) != -1 || strfind(newName,"ç",true) != -1) {ValideName=false;} else if(strfind(newName,"}",true) != -1 || strfind(newName,"ô",true) != -1 || strfind(newName,"^",true) != -1) {ValideName=false;} else if(strfind(newName,"€",true) != -1 || strfind(newName,"$",true) != -1 || strfind(newName,"*",true) != -1) {ValideName=false;} else if(strfind(newName,"%",true) != -1 || strfind(newName,"¤",true) != -1 || strfind(newName,"9",true) != -1) {ValideName=false;} else if(strfind(newName,"0",true) != -1 || strfind(newName,"1",true) != -1 || strfind(newName,"2",true) != -1) {ValideName=false;} else if(strfind(newName,"3",true) != -1 || strfind(newName,"4",true) != -1 || strfind(newName,"5",true) != -1) {ValideName=false;} else if(strfind(newName,"6",true) != -1 || strfind(newName,"7",true) != -1 || strfind(newName,"8",true) != -1) {ValideName=false;} else if(strfind(newName,"ù",true) != -1 || strfind(newName,"à",true) != -1 || strfind(newName,"é",true) != -1) {ValideName=false;} else if(strfind(newName,"è",true) != -1 || strfind(newName,"ê",true) != -1 || strfind(newName,"â",true) != -1) {ValideName=false;} else if(strfind(newName,"û",true) != -1 || strfind(newName,"î",true) != -1 || strfind(newName,"ã",true) != -1) {ValideName=false;} else if(strfind(newName,"ä",true) != -1 || strfind(newName,"ë",true) != -1 || strfind(newName,"ï",true) != -1) {ValideName=false;} else if(strfind(newName,"ö",true) != -1 || strfind(newName,"ü",true) != -1 || strfind(newName,"ÿ",true) != -1) {ValideName=false;} else if(strfind(newName,"ñ",true) != -1 || strfind(newName,"õ",true) != -1 || strfind(newName,"tamere",true) != -1) {ValideName=false;} else if(strfind(newName," ",true) != -1) {ValideName=false;} else if(strfind(newName,"_",true) == -1) {ValideName=false;} else if(checkSql) { if(MySQLCheckAccount(newName)!=0) Merci a vous
×
×
  • Créer...