Jump to content

Reinhardt

Member
  • Posts

    147
  • Joined

  • Last visited

Everything posted by Reinhardt

  1. Salut, pentru a rezolva această probleme, înlocuiește întregul case DIALOG_PETNAME cu: case DIALOG_PETNAME: { if(!response) return 1; if(!isnull(inputtext)) { if(strlen(inputtext) >= 5 && strlen(inputtext) <= 15) { DestroyDynamic3DTextLabel(Pet[playerid]); format(query, sizeof(query),"UPDATE `users` SET `PetName` = '%s' WHERE `Name` = '%s'",inputtext, GetName(playerid)); mysql_tquery(SQL, query, "", ""); format(PlayerInfo[playerid][pPetName], 30, inputtext); SCMEx(playerid, -1, "Ai schimbat numele pet-ului in %s",PlayerInfo[playerid][pPetName]); Update(playerid, pPetNamex); PlayerInfo[playerid][pPremiumPoints] -= 20; Update(playerid, pPremiumPointsx); format(string, sizeof(string), " {6AD439}%s{FFFFFF} - level {6AD439}%d{FFFFFF}",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetLevel]); Pet[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 357.120239, 1.712298, 349.232513, 20, playerid); } else { SCM(playerid, COLOR_YELLOW, "Error: Nume pet invalid. (5 - 15 litere)"); format(string, sizeof(string), "Numele actual al pet-ului este %s\nDaca doresti sa il schimbi te rugam introdu numele dorit in casuta de mai jos\nNumele trebuie sa fie de minin 5 caractere si maxim 15",PlayerInfo[playerid][pPetName]); ShowPlayerDialog(playerid, DIALOG_PETNAME, DIALOG_STYLE_INPUT, "Change pet name", string, "Change", "Cancel"); } } else { SCM(playerid, COLOR_YELLOW, "Error: Nume pet invalid. (5 - 15 litere)"); format(string, sizeof(string), "Numele actual al pet-ului este %s\nDaca doresti sa il schimbi te rugam introdu numele dorit in casuta de mai jos\n Numele trebuie sa fie de minin 5 caractere si maxim 15",PlayerInfo[playerid][pPetName]); ShowPlayerDialog(playerid, DIALOG_PETNAME, DIALOG_STYLE_INPUT, "Change pet name", string, "Change", "Cancel"); } }
×
×
  • Create New...