Jump to content

Cost1n

Membru
  • Posts

    73
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cost1n

  1. 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
  2. Hai frate-miu posteaza-l.
  3. Si mai ales de la ce gamemode a inceput Ksenon sa lucreze la T4P cu adevarat?
  4. Deci pana la urma de la ce gamemode e inceput?
  5. Nu chiar pe degeaba dar, oricum o nu o sa tina si tot o sa fie postat..asa se ajunge, si acu asta am termint.
  6. Stie, oricui ofera bani :), oricum cine il cumpara da bani degeaba deoarece daca vrea sa isi deschida server o sa aiba 0 playeri, nimanui nu-i place un server care copiaza un alt server mai mare..
  7. il vinde/il posteaza, tot pe net ajunge.
  8. Pana la urma il mai vinzi sau il postezi? Ca esti cam inactiv, si ma gandesc ca daca tot numai lucrezi la el macar posteaza-l, fa ceva cu bunatatea asta de gamemode
  9. E pe naiba T4P, e un rahat de bigzone sau saints network editat, are o groaza de buguri la /cars si la multe..
  10. Inseamna ca compilezi cu alt pawno, descarca fisierele de pe sa-mp.com , si pune fisierele .exe , iar apoi compileaza-l ca o sa-ti mearga.
  11. daca tot l-ai abandonat poti si tu sa il postezi macar?
  12. Eu tot astept sa il postezi :D
  13. Gura mica
  14. Nu ca coite la mine,mai termina cu limbaju asta de "lopătar" ca se vede cu ochiu liber,tu nu o sa ajungi in veci la nivelu` lu` Edison..marog macar sti sa dai copy+paste si gata..bravo asta mi-a placut.
  15. GG!
  16. GG daca e facut de tine..
  17. Poti face interior ca HQ-ul mafiilor de pe b-zone ? https://wiki.b-zone.ro/index.php?title=Factiuni:Vietnamese_Boys, e o poza mai jos cu HQ..
  18. Si zici ca el are 1 an si 6 luni,sa chinuit..a facut cat a putut asta e..Ce ? vroiai sa ai sisteme de apartamente de garaj de accesori ? ca sa poti copia tot din el ha ? =)))
  19. Prea mult roz,mai taie din el..
  20. Reusit.
  21. Coite nu va inteleg dupa ce ca e plin internetul de copii care au acest gamemode crezi ca nimeni nu stie de acest gamemode...ce nab..
  22. Ciocu mic.
×
×
  • 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.