Jump to content

Browse

Membru
  • Posts

    72
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Browse

  1. Cine are gamemodeul sa imi dea si mie add pe discord Costin7#7479
  2. Browse

    Dublu click

    Multumesc pentru tot oricum!
  3. Browse

    Dublu click

    Ce face defer reset_clicks(playerid);
  4. Browse

    Dublu click

    Pai si daca as vrea sa contorizez clickurile pentru un textdraw specific? Buna ideea apropo. EDIT: Am gasit o solutie pentru asta!! Dar de exemplu daca nu as vrea sa se contorizeze clickurile ci doar sa fie de exemplu 2 clickuri rapide si daca le apesi rar sa nu se puna nu stiu daca intelegi la ce ma refer, stiu ca ma abat de la intrebarea principala dar daca mi-ai dat ideea asta cred ca este posibil..
  5. Cum fac ca atunci când dau dublu click pe un textdraw sa se intample ceva? Nu sa dau click doar odata, de 2x. E ceva legat de OnPlayerClickPlayerTextDraw, da nu imi dau seama cum sa fac ca ca atunci cand apas odata sa apara ceva si cand apas de 2x vreau pe acelasi textdraw sa apara alt textdraw.
  6. Cum fac ca atunci când dau dublu click pe un textdraw sa se intample ceva? Nu sa dau click doar odata, de 2x.
  7. Nu uitati de @Dennis12.cea mai mare jigodie care si-o baga pe 200 lei
  8. Cel mai mare tepar, nu luati legatura cu el, mananca mult cacat si nu o sa aiba timp sa va raspunda

  9. Browse

    Unknown

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

    Unknown

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

    Unknown

    Nu am nicio linie de cod cu 'GameModeText' nu inteleg despre ce vrobesti.
  12. 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)
  13. https://www.leaks.ro/topic/2660-gamemode-de-la-0-system-login-register/ Ca sa nu mai faci pe indiferentu.
  14. 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"
  15. A gata am gasit, am pus decat un buton la DIALOG, multumesc mult de ajutor!
  16. 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
  17. enum pVar { pSQLID, pip[16], pname[MAX_PLAYER_NAME], ppassword[129], pLanguage, psex, page } new playerVariables[MAX_PLAYERS][pVar];
  18. enum { DIALOG_REGISTER, DIALOG_LANGUAGE, DIALOG_SEX, DIALOG_AGE, }
  19. 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.
  20. 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.