Szerző Téma: Dialogos Regisztráció  (Megtekintve 988 alkalommal)

Dialogos Regisztráció
« Dátum: 2014. Augusztus 23. - 12:18:16 »
0 Show voters
   if(RegistrationStep[playerid] > 0)
{
    if(RegistrationStep[playerid] == 1)
    {
        new idx;
       tmp = strtok(text, idx);
    if((strcmp(\"fiú\", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen(\"fiu\")))
   {
        PlayerInfo[playerid][pSex] = 1;
                 SendClientMessage(playerid, 0xFFFFFFAA, \"Oké,fiú vagy.\");
                 ShowPlayerDialog(playerid, 9952, DIALOG_STYLE_LIST, \"Korod?\",\"18\\n19\\n20\\n21\\n22\\n23\\n24\\n25\\n26\\n27\\n28\\n29\\n30\\n31\\n32\\n33\\n34\\n35\\n36\\n37\\n38\\n39\\n40\", \"Elkezd\", \"Mégse\");
       new maleskin;
       maleskin = random(sizeof(CivMalePeds));
       SetPlayerSkin(playerid, maleskin);
       PlayerInfo[playerid][Civilruha1] = maleskin;
       RegistrationStep[playerid] = 2;
       return 0;
   }
   else if((strcmp(\"lány\", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen(\"lany\")))
   {
          PlayerInfo[playerid][pSex] = 2;
         SendClientMessage(playerid, 0xFFFFFFAA, \"Oké,lány vagy.\");
       ShowPlayerDialog(playerid, 9952, DIALOG_STYLE_LIST, \"Korod?\",\"18\\n19\\n20\\n21\\n22\\n23\\n24\\n25\\n26\\n27\\n28\\n29\\n30\\n31\\n32\\n33\\n34\\n35\\n36\\n37\\n38\\n39\\n40\", \"Elkezd\", \"Mégse\");
       new femaleskin;
       femaleskin = random(sizeof(CivFemalePeds));
       SetPlayerSkin(playerid, femaleskin);
       PlayerInfo[playerid][Civilruha1] = femaleskin;
       RegistrationStep[playerid] = 2;
       return 0;[/spoiler]
Spoiler for Hiden:
//TextDrawShowForPlayer(playerid,lbt);
   //TextDrawShowForPlayer(playerid,lbb);
   TextDrawShowForPlayer(playerid,dtrp);
   gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
   SetPlayerInterior(playerid, 0);
   PlayerInfo[playerid][pInt] = 0;
   SetPlayerPos(playerid, -254.8342,2603.1379,62.8582);
   SetPlayerFacingAngle(playerid, 180);
   TogglePlayerControllable(playerid, 0);
   RegistrationStep[playerid] = 1;
   ClearChatbox(playerid, 10);
            SendClientMessage(playerid, COLOR_YELLOW2, \"{20ff00}Üdvözlünk a szerveren!{20ff00} Kérlek, válaszolj a kérdésekre!\");
   ShowPlayerDialog(playerid, 9951, DIALOG_STYLE_LIST, \"Nemed?!\",\"Fiú\\nLány\", \"OK\", \"mégse\");

 
Helló! segitségetek kérném behozza a dialogot de ha rákatintok akkkor nem csinál semmit mind a 2 önél Valaki segitene?

Dupla hozzászólás automatikusan összefûzve. ( [time]2014. augusztus 23. 12:29:12[/time] )

Senki se o.O
« Utoljára szerkesztve: 2014. Augusztus 23. - 12:49:41 írta slre14 »

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
Dialogos Regisztráció
« Válasz #1 Dátum: 2014. Augusztus 23. - 12:44:54 »
0 Show voters
[mod]Változtasd meg a téma címét a szabályzatnak megfelelõen és a spoiler helyett használj

taget! 24 ó.[/mod]

Dialogos Regisztráció
« Válasz #2 Dátum: 2014. Augusztus 23. - 12:46:03 »
0 Show voters
Oké bocsi
off


Emlékszel rám dfoglalo? Nekem volt a cs-s szerom és admin voltál :D

Dialogos Regisztráció
« Válasz #3 Dátum: 2014. Augusztus 23. - 12:50:47 »
0 Show voters
Amit írtál abból nem sok mindent lehet kiolvasni...

De erre jutottam (Nem teszteltem, mivel nincsenek meg a változók)




public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 9951)
{
if(listitem == 0)
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessage(playerid, 0xFFFFFFAA, \"Oké,fiú vagy.\");
ShowPlayerDialog(playerid, 9952, DIALOG_STYLE_LIST, \"Korod?\",\"18\\n19\\n20\\n21\\n22\\n23\\n24\\n25\\n26\\n27\\n28\\n29\\n30\\n31\\n32\\n33\\n34\\n35\\n36\\n37\\n38\\n39\\n40\", \"Elkezd\", \"Mégse\");
new maleskin;
maleskin = random(sizeof(CivMalePeds));
SetPlayerSkin(playerid, maleskin);
PlayerInfo[playerid][Civilruha1] = maleskin;
RegistrationStep[playerid] = 2;
}
if(listitem == 1)
{
PlayerInfo[playerid][pSex] = 2;
SendClientMessage(playerid, 0xFFFFFFAA, \"Oké,lány vagy.\");
ShowPlayerDialog(playerid, 9952, DIALOG_STYLE_LIST, \"Korod?\",\"18\\n19\\n20\\n21\\n22\\n23\\n24\\n25\\n26\\n27\\n28\\n29\\n30\\n31\\n32\\n33\\n34\\n35\\n36\\n37\\n38\\n39\\n40\", \"Elkezd\", \"Mégse\");
new femaleskin;
femaleskin = random(sizeof(CivFemalePeds));
SetPlayerSkin(playerid, femaleskin);
PlayerInfo[playerid][Civilruha1] = femaleskin;
RegistrationStep[playerid] = 2;
} }
return 1;
}

 

Így? Ill. a kornak a beírását inkább csináld inputtext -el, azzal 1000x könynebb.

Nem elérhető Dfoglalo

  • 4069
  • Globális Moderátor
    • Profil megtekintése
Dialogos Regisztráció
« Válasz #4 Dátum: 2014. Augusztus 23. - 12:54:41 »
0 Show voters
[mod]Így már rendben van.[/mod]


Nem, nem emlékszem. Nem igazán voltam sehol sem admin.
 
A kódod pedig azért nem mûködik,  mert - ezen információk alapján - nem adtad meg, hogy mi történjen true/false response esetén az egyes listitemeknél. Gyakorlati kód .RäNÐoM.-nál.


[mod]Az OFF-olást fejezd be, ez nem PÜ! OFF eltávolítva. A témát pedig áthelyezem, mert a kód alapján GF-rõl van szó.[/mod]
« Utoljára szerkesztve: 2014. Augusztus 23. - 13:01:32 írta Dfoglalo »

Dialogos Regisztráció
« Válasz #5 Dátum: 2014. Augusztus 23. - 13:03:16 »
0 Show voters
Valami nem jo ugyan oda tettem és be ad egy 1 erort :/

Dialogos Regisztráció
« Válasz #6 Dátum: 2014. Augusztus 23. - 13:04:28 »
0 Show voters
Amit én írtam az másold be a GameMode -ba.

Ha van OnDialogResponse() -már a módban (Valószínûleg van.), akkor


Innentõl

 
if(dialogid == 9951)

 


másold be

 
} }

 
eddig (A \"return 1;\" -t már ne.)

Ha mégse lenne OnDialogResponse(), akkor másold be az egészet.


Ami az 1. spoiler -be írtál az töröld ki a módból.


Amit a 2.-ba azt hagyd benne

 

//TextDrawShowForPlayer(playerid,lbt);
                        //TextDrawShowForPlayer(playerid,lbb);
                        TextDrawShowForPlayer(playerid,dtrp);
                        gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
                        SetPlayerInterior(playerid, 0);
                        PlayerInfo[playerid][pInt] = 0;
                        SetPlayerPos(playerid, -254.8342,2603.1379,62.8582);
                        SetPlayerFacingAngle(playerid, 180);
                        TogglePlayerControllable(playerid, 0);
                        RegistrationStep[playerid] = 1;
                        ClearChatbox(playerid, 10);
            SendClientMessage(playerid, COLOR_YELLOW2, \"{20ff00}Üdvözlünk a szerveren!{20ff00} Kérlek, válaszolj a kérdésekre!\");
                        ShowPlayerDialog(playerid, 9951, DIALOG_STYLE_LIST, \"Nemed?!\",\"Fiú\\nLány\", \"OK\", \"mégse\");

 
Ezt a részt hagyd ott a másikat töröld.

Dialogos Regisztráció
« Válasz #7 Dátum: 2014. Augusztus 23. - 13:11:36 »
0 Show voters
//---------------------------<[ OnDialogResponse ]>--------------------------------------------------------
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
//fun2
if(dialogid == DIALOG_HARC)
    {
if(response == 1)
{

 
Ide tegyem akkor vagy hova?

Dupla hozzászólás automatikusan összefûzve. ( [time]2014. augusztus 23. 13:20:44[/time] )

C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3322) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3334) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3338) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3350) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3361) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3365) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3369) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3381) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3385) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(3389) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(5097) : error 004: function \"ProxDetectorS\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(20331) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(20332) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(20333) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(21783) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(22094) : error 004: function \"CrimInRange\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(22562) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(24568) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(24924) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(25498) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(25514) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(25525) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(25536) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(25693) : error 004: function \"ProxDetector\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(32227) : error 004: function \"CrimInRange\" is not implemented
C:\\Documents and Settings\\Rendszergazda\\Asztal\\1.pwn(35037) : error 004: function \"ProxDetector\" is not implemented
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
26 Errors.

 
26 erorr ..

Dupla hozzászólás automatikusan összefûzve. ( [time]2014. augusztus 23. 14:00:51[/time] )

Lehet zárni pmbe megoldjuk
[mod]Már elmondtam néhányszor, hogy használj sima code és pawn code taget. Egyszer sikerült is, azóta több témában sem. Miért? Most javítottam helyetted.[/mod]
« Utoljára szerkesztve: 2014. Augusztus 23. - 16:03:02 írta Dfoglalo »

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Dialogos Regisztráció
« Válasz #8 Dátum: 2014. Augusztus 23. - 14:32:05 »
0 Show voters
[mod]Köszönöm, hogy bezárhatom helyetted :) Legközelebb pedig ne PM-ben intézzétek a dolgot, ha már megnyitottad a témát, hogy lássa mindenki a megoldást és tanulhasson belõle :)[/mod]
« Utoljára szerkesztve: 2014. Augusztus 23. - 16:03:46 írta Dfoglalo »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal