Jump to content

Browse

Membru
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    1

Browse last won the day on April 27

Browse had the most liked content!

Profile Information

  • Sex
    Masculin

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Browse's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

5

Reputation

  1. Browse

    Unknown

    Aaaaaaaaaaaa Nu aveam text la gamemode, doamne la ce problema m-am putut incurca..mersi am rezolvat.
  2. Browse

    Unknown

    Uite aici gamemode-ul poate vezi ceva gresit https://pastebin.com/raw/81KLB9ZY
  3. Browse

    Unknown

    Nu am nicio linie de cod cu 'GameModeText' nu inteleg despre ce vrobesti.
  4. Browse

    Unknown

    Username: Browse Problema intalnita: Nu inteleg de imi apare Unknown cand totul merge perfect, si nici erori nu primesc. Detalii despre problema: Cand apasa pe samp-server imi da Unknown la gamemode fara nicio eroare. Ce ai incercat sa faci inainte sa postezi?: Am incercat sa reactualizez pluginul si includeul, tot nimic. Cod sursa: https://imgur.com/a/QeuXNn1 Alte detalii: Am versiunea MySQL 41-2, iar fisierele de SA-MP R2-1(pentru ca imi dadea o eroare cu Hash ceva si altfel nu se poate)
  5. https://www.leaks.ro/topic/2660-gamemode-de-la-0-system-login-register/ Ca sa nu mai faci pe indiferentu.
  6. Asta gmu lui Antif1x :)))
  7. function:OnQueryFinish(resultid, extraid, ConnectionHandle) { StopAudioStreamForPlayer(extraid); new szRows, szFields, string[32]; if(resultid != THREAD_NO_RESULT) cache_get_data(szRows, szFields); switch(resultid){ case THREAD_CHECK_ACCOUNT: { InterpolateCameraPos(extraid, 1689.3907, -1732.2874, 20.3228, 1062.3051, -1732.3589, 24.6772, 10000, CAMERA_MOVE); InterpolateCameraLookAt(extraid, 1062.3051, -1732.3589, 24.6772, 1062.3051, -1732.3589, 24.6772, 10000, CAMERA_MOVE); if(szRows) { cache_get_field_content(0, "id", szLoad); playerVariables[extraid][pSQLID] = strval(szLoad); cache_get_field_content(0, "password", szCache); format(playerVariables[extraid][ppassword], 129, szCache); //cache_get_field_content(0, "email", szLoad); format(playerVariables[extraid][pemail], 40, szLoad); cache_get_field_content(0, "sex", szLoad); playerVariables[extraid][psex] = strval(szLoad); cache_get_field_content(0, "age", szLoad); playerVariables[extraid][page] = strval(szLoad); clearChat(extraid, 1); SendClientMessage(extraid, -1, "SERVER: {FFFFFF}Welcome."); SendClientMessage(extraid, -1, "SERVER: {FFFFFF}You already have a registered account, please enter your password into the dialog box."); ShowPlayerDialog(extraid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "SERVER: Login", "Welcome!\n\nPlease enter your password below!", "Login", "Cancel"); } else { format(szMessage, -1, "Hello %s. Welcome!", szPlayerName); SendClientMessage(playerid, 0x844185FF, szMessage); //linia 303 SendClientMessage(playerid, -1, "You aren't registered yet. Please enter your desired password in the dialog box to register."); //linia 304 format(string,sizeof(string),"{844185}Hello %s./n/{FFFFFF}Please enter your desired password below!", GetName(playerid)); //linia 305 ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"SERVER: Registration", string, "Register", "Cancel"); // linia 306 } } } return 1; } C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(303) : error 017: undefined symbol "playerid" C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(304) : error 017: undefined symbol "playerid" C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(305) : error 017: undefined symbol "playerid" C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(306) : error 017: undefined symbol "playerid" Am incercat sa inlocuiesc playerid cu i, imi da aceasi eroare numai ca da undefined symbol "i"
  8. A gata am gasit, am pus decat un buton la DIALOG, multumesc mult de ajutor!
  9. ShowPlayerDialog(playerid, DIALOG_SEX, DIALOG_STYLE_LIST, "Alege sexul caracterului", "Barbat/nFemeie", "Alege"); ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "Varsta", "Scrie varsta caracterului tau:", "Ok"); C:\Users\Costin\Desktop\0.3\gamemodes\nephrite.pwn(252) : warning 202: number of arguments does not match definition C:\Users\Costin\Desktop\0.3\gamemodes\nephrite.pwn(266) : warning 202: number of arguments does not match definition
  10. enum pVar { pSQLID, pip[16], pname[MAX_PLAYER_NAME], ppassword[129], pLanguage, psex, page } new playerVariables[MAX_PLAYERS][pVar];
  11. enum { DIALOG_REGISTER, DIALOG_LANGUAGE, DIALOG_SEX, DIALOG_AGE, }
  12. case DIALOG_LANGUAGE: { if(response) { playerVariables[playerid][pLanguage] = 2; SendClientMessage(playerid, -1, "Limba setata: romana.", "[EN] To set the language to English, use /en."); //linia 246 } else { playerVariables[playerid][pLanguage] = 1; SendClientMessage(playerid, -1, "Language set to english.", "[RO] Pentru a seta limba romana foloseste /ro."); // linia 249 } ShowPlayerDialog(playerid, DIALOG_SEX, DIALOG_STYLE_LIST, "Alege sexul caracterului", "Barbat\nFemeie", "Alege"); //linia 251 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"); // linia 265 } } return 1; } C:\Users\Costin\Desktop\0.3\gamemodes\nephrite.pwn(246) : warning 202: number of arguments does not match definition C:\Users\Costin\Desktop\0.3\gamemodes\nephrite.pwn(249) : warning 202: number of arguments does not match definition C:\Users\Costin\Desktop\0.3\gamemodes\nephrite.pwn(251) : warning 202: number of arguments does not match definition C:\Users\Costin\Desktop\0.3\gamemodes\nephrite.pwn(265) : warning 202: number of arguments does not match definition Nu am DIALOG_AGE, dar este definit.
  13. 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; } C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(237) : warning 209: function "OnDialogResponse" should return a value C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(238) : error 010: invalid function or declaration Dar nu inteleg de ce. C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(242) : error 010: invalid function or declaration Toate astea dau eroare la: 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"); } C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(248) : error 010: invalid function or declaration C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(249) : error 010: invalid function or declaration C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(250) : error 010: invalid function or declaration C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(254) : error 010: invalid function or declaration C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(261) : error 010: invalid function or declaration
×
×
  • 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.