Jump to content
  • 0

Question

Posted (edited)

Problemă întâlnită (descriere): Am incercat sa fac un sistem de /buycar pe dialog si mi-a reusit pana cand am dat de ondialogresponse.
Ero(area / rile) / warning-(ul / urile): 26 de erori.
Liniile de cod / sursa / script-ul: [pawn]if(strcmp(cmd, "/buycar", true) == 0)
{
if(TotalMasini < 2000)
{
if(PlayerToPoint(3.0, playerid,637.8715,-492.2792,16.3359))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_ORANGE, "/buycar [nume/lista]");
ShowPlayerDialog(playerid,DIALOG_CATEGORY,DIALOG_STYLE_LIST ,"Categorii de masini","Masini ieftinenMasini cu tractiunenCamionetenTirurinMasini SportnMasini Off RoadnMasini de donator","Urmatorul","Cancel");
return 1;
}[/pawn]

OnDialogResponse:

[pawn] if(dialogid == DIALOG_CATEGORY)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,112,DIALOG_STYLE_LIST ,"Masini ieftine","Sunrise 100.000$nPerenial 50.000$n","Buy","Cancel");
case 1:
{
ShowPlayerDialog(playerid,113,DIALOG_STYLE_LIST ,"Masini cu tractiune","SandKing 1.000.000$n","Buy","Cancel");
}
case 2:
{
ShowPlayerDialog(playerid,114,DIALOG_STYLE_LIST ,"Camionete","Burrito 100.000$nn","Buy","Cancel");
}
case 3:
{
ShowPlayerDialog(playerid,115,DIALOG_STYLE_LIST ,"Tiruri","RoadTrain 300.000$n","Buy","Cancel");
}
case 4:
{
ShowPlayerDialog(playerid,116,DIALOG_STYLE_LIST ,"Masini sport","Super GT 1.000.000$n","Buy","Cancel");
}
case 5:
{
ShowPlayerDialog(playerid,117,DIALOG_STYLE_LIST ,"Masini OFF Road","Mesa 1.000.000$n","Buy","Cancel");
}
case 6:
{
ShowPlayerDialog(playerid,118,DIALOG_STYLE_LIST ,"Masini de donator","Maverick 1.000.000$n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}[/pawn]

Iar dupa ca sa vina alt dialog sa scrie numele masinii:

[pawn] if(dialogid == 112)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,119,DIALOG_STYLE_INPUT ,"Dealer Ship","Scrie numele masini aici:n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}
if(dialogid == 113)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,119,DIALOG_STYLE_INPUT ,"Dealer Ship","Scrie numele masini aici:n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}
if(dialogid == 114)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,119,DIALOG_STYLE_INPUT ,"Dealer Ship","Scrie numele masini aici:n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}
if(dialogid == 115)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,119,DIALOG_STYLE_INPUT ,"Dealer Ship","Scrie numele masini aici:n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}
if(dialogid == 116)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,119,DIALOG_STYLE_INPUT ,"Dealer Ship","Scrie numele masini aici:n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}
if(dialogid == 117)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,119,DIALOG_STYLE_INPUT ,"Dealer Ship","Scrie numele masini aici:n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}
if(dialogid == 118)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,119,DIALOG_STYLE_INPUT ,"Dealer Ship","Scrie numele masini aici:n","Buy","Cancel");
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ai anulat")
}
}[/pawn]

[pawn]D:GamesVladADOUAV~1pawnoincludestreamer.inc(305) : error 017: undefined symbol "Streamer_OnPlayerConnect"
D:GamesVladADOUAV~1pawnoincludestreamer.inc(325) : error 017: undefined symbol "Streamer_OnPlayerDisconnect"
D:GamesVladADOUAV~1pawnoincludestreamer.inc(391) : error 017: undefined symbol "Streamer_OnPlayerPickUpPickup"
D:GamesVladADOUAV~1pawnoincludestreamer.inc(411) : error 017: undefined symbol "Streamer_OnPlayerEnterCP"
D:GamesVladADOUAV~1pawnoincludestreamer.inc(431) : error 017: undefined symbol "Streamer_OnPlayerLeaveCP"
D:GamesVladADOUAV~1pawnoincludestreamer.inc(451) : error 017: undefined symbol "Streamer_OnPlayerEnterRaceCP"
D:GamesVladADOUAV~1pawnoincludestreamer.inc(471) : error 017: undefined symbol "Streamer_OnPlayerLeaveRaceCP"
D:GamesVladA Doua Viataa2viata.pwn(2321) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2332) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2351) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2362) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2390) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2406) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2420) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2434) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2447) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2460) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2472) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2488) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2502) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2516) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2529) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2542) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2555) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2571) : error 004: function "ClearChatbox" is not implemented
D:GamesVladA Doua Viataa2viata.pwn(2585) : error 004: function "ClearChatbox" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
[/pawn]

Imagini / Video (optional):-
Aţi încercat să rezolvaţi singur?: Da,am incercat cu Backet Finder da nu a mers.:|Ma chinui de 3 saptamani la acest sistem:|

Daca e sa mearga,o sa incerc pe seara,peste 10 minute am antrenament la arme.

Edited by Adrian_Petre

 

 

2 answers to this question

Recommended Posts

  • Administrator
Posted

Vezi ca aici

 

[pawn]if(dialogid == DIALOG_CATEGORY)
{
    if(response)
    {
        switch(listitem)
        {
            case 0:
            {
                ShowPlayerDialog(playerid,112,DIALOG_STYLE_LIST ,"Masini ieftine","Sunrise 100.000$nPerenial 50.000$n","Buy","Cancel");
            case 1:
            {
                ShowPlayerDialog(playerid,113,DIALOG_STYLE_LIST ,"Masini cu tractiune","SandKing 1.000.000$n","Buy","Cancel");
            }
            case 2:
            {
                ShowPlayerDialog(playerid,114,DIALOG_STYLE_LIST ,"Camionete","Burrito 100.000$nn","Buy","Cancel");
            }
            case 3:
            {
                ShowPlayerDialog(playerid,115,DIALOG_STYLE_LIST ,"Tiruri","RoadTrain 300.000$n","Buy","Cancel");
            }
            case 4:
            {
                ShowPlayerDialog(playerid,116,DIALOG_STYLE_LIST ,"Masini sport","Super GT 1.000.000$n","Buy","Cancel");
            }
            case 5:
            {
                ShowPlayerDialog(playerid,117,DIALOG_STYLE_LIST ,"Masini OFF Road","Mesa 1.000.000$n","Buy","Cancel");
            }
            case 6:
            {
                ShowPlayerDialog(playerid,118,DIALOG_STYLE_LIST ,"Masini de donator","Maverick 1.000.000$n","Buy","Cancel");
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "Ai anulat")
    }
}[/pawn]

 

Ai o paranteza de la case 0 care se inchide ultima din case-uri.

 

Trebuie sa arate asa

[pawn]if(dialogid == DIALOG_CATEGORY)
{
    if(response)
    {
        switch(listitem)
        {
            case 0:
            {
                ShowPlayerDialog(playerid,112,DIALOG_STYLE_LIST ,"Masini ieftine","Sunrise 100.000$nPerenial 50.000$n","Buy","Cancel");
            }
            case 1:
            {
                ShowPlayerDialog(playerid,113,DIALOG_STYLE_LIST ,"Masini cu tractiune","SandKing 1.000.000$n","Buy","Cancel");
            }
            case 2:
            {
                ShowPlayerDialog(playerid,114,DIALOG_STYLE_LIST ,"Camionete","Burrito 100.000$nn","Buy","Cancel");
            }
            case 3:
            {
                ShowPlayerDialog(playerid,115,DIALOG_STYLE_LIST ,"Tiruri","RoadTrain 300.000$n","Buy","Cancel");
            }
            case 4:
            {
                ShowPlayerDialog(playerid,116,DIALOG_STYLE_LIST ,"Masini sport","Super GT 1.000.000$n","Buy","Cancel");
            }
            case 5:
            {
                ShowPlayerDialog(playerid,117,DIALOG_STYLE_LIST ,"Masini OFF Road","Mesa 1.000.000$n","Buy","Cancel");
            }
            case 6:
            {
                ShowPlayerDialog(playerid,118,DIALOG_STYLE_LIST ,"Masini de donator","Maverick 1.000.000$n","Buy","Cancel");
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "Ai anulat")
    }
}[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • 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.