Jump to content

MiritaXD

Membru
  • Posts

    186
  • Joined

  • Last visited

  • Days Won

    3

Community Answers

  1. MiritaXD's post in error 010: invalid function or declaration was marked as the answer   
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case DIALOG_REGISTER: { if(!response) return Kick(playerid); if(strlen(inputtext) < 6 || strlen(inputtext) > 32) { format(szMessage, -1, "Hello %s. Welcome to server!", szPlayerName); SendClientMessage(playerid, 0x844185FF, szMessage); SendClientMessage(playerid, -1, "You aren't registered yet. Please enter your desired password in the dialog box to register."); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "SERVER: Registration", "{844185}Hello.\n\{FFFFFF}Please enter your desired password below!", "Register", "Cancel"); /*format(string, sizeof(string),"{FFFFFF}Please enter your desired password below!",GetName(playerid)); ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD, "SERVER: Registration", string, "Register", "Cancel");*/ } else { WP_Hash(playerVariables[playerid][ppassword], 129, inputtext); format(szQuery, sizeof(szQuery), "INSERT INTO `users` (name, password, IP) VALUES ('%s', '%s', '%s')", GetName(playerid), playerVariables[playerid][ppassword], playerVariables[playerid][pip]); mysql_function_query(handle, szQuery, true, "insertAccount", "ii", THREAD_NO_RESULT, playerid); format(szMediumString, 156, "New account: %s (%d).", szPlayerName, playerid); //submitToAdmins(COLOR_RED, szMediumString, 1); SendClientMessage(playerid, -1, szMediumString); ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_MSGBOX, "SERVER: Language", "Alege limba in care vor fi afisate mesajele.\nChoose the language that you speak.", "Romana", "English"); } } case DIALOG_LANGUAGE: { if(response) { playerVariables[playerid][pLanguage] = 2; SendClientMessage(playerid, -1, "Limba setata: romana.", "[EN] To set the language to English, use /en."); } else { playerVariables[playerid][pLanguage] = 1; SendClientMessage(playerid, -1, "Language set to english.", "[RO] Pentru a seta limba romana foloseste /ro."); } ShowPlayerDialog(playerid, DIALOG_SEX, DIALOG_STYLE_LIST, "Alege sexul caracterului", "Barbat\nFemeie", "Alege"); SendClientMessage(playerid, 0xFFFB00FF, "Alege sexul caracterului tau."); } case DIALOG_SEX: { switch(listitem) { case 0: { SendClientMessage(playerid, 0xFFFB00FF, "Sex setat: barbat."); playerVariables[playerid][psex] = 1; } case 1: { SendClientMessage(playerid, 0xFFFB00FF, "Sex setat: femeie."); playerVariables[playerid][psex] = 2; } } ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "Varsta", "Scrie varsta caracterului tau:", "Ok"); } } return 1; } incearca
  2. MiritaXD's post in Eroare pawn was marked as the answer   
    PlayerTextDrawSetString(i, PaydayTDS, string3);            PlayerTextDrawShow(i, PaydayTDS);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.