Jump to content
  • 0

Problema comanda


al3XXX

Question

C:\Users\al3XXX\Desktop\GM\GM.pwn(33060) : error 001: expected token: ";", but found ")"

 

asta e eroarea care o iau

 

CMD:gotojob(playerid, params[])
{
    if(pInfo[playerid][pAdmin] >= 1)
    {
        new string[2500];
        strcat(string, "Detective\n");
        strcat(string, "StreetSweeper\n");
        strcat(string, "Farmer\n");
        strcat(string, "Trucker\n");
        strcat(string, "PizzaBoy\n");
        strcat(string, "GarbageMan\n");
        strcat(string, "StuntMan\n");
        strcat(string, "Arms Dealer\n");
        strcat(string, "Drugs Dealer\n");
        strcat(string, "Miner\n");
        strcat(string, "FisherMan\n");
        strcat(string, "Mechanic\n");
        ShowPlayerDialog(playerid,DIALOG_GOTOJOB,DIALOG_STYLE_LIST,"{0080FF}T{FFFFFF}eleport Jobs",string,"Teleport","Anuleaza");
    }
    else
    {
        SendClientMessage(playerid, red, AdminError);
    }
    return 1;
}

 

asta e comanda

linia 33060 este  ShowPlayerDialog(playerid,DIALOG_GOTOJOB,DIALOG_STYLE_LIST,"{0080FF}T{FFFFFF}eleport Jobs",string,"Teleport","Anuleaza");

 

mai erau erori, dar le-am rezolvat. nu-mi dau seama care e problema la asta.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Am compilat comanda la mine in pawno si nu am primit aceasta eroare, Tot ce am modificat a fost red, AdminError si pInfo in PlayerInfo

CMD:gotojob(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new string[2500];
        strcat(string, "Detective\n");
        strcat(string, "StreetSweeper\n");
        strcat(string, "Farmer\n");
        strcat(string, "Trucker\n");
        strcat(string, "PizzaBoy\n");
        strcat(string, "GarbageMan\n");
        strcat(string, "StuntMan\n");
        strcat(string, "Arms Dealer\n");
        strcat(string, "Drugs Dealer\n");
        strcat(string, "Miner\n");
        strcat(string, "FisherMan\n");
        strcat(string, "Mechanic\n");
        ShowPlayerDialog(playerid,222,DIALOG_STYLE_LIST,"{0080FF}T{FFFFFF}eleport Jobs",string,"Teleport","Anuleaza");
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "");// 
    }
    return 1;
}

 

  • Like 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

cauta in gm cum este definit DIALOG_GOTOJOB

ar trebui sa fie definit #define DIALOG_GOTOJOB 14// sau alt numar

  • Like 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

trebuie sa ai undeva toate dialogurile definite trebuie sa pui un nr care nu mai este folosit de alt dialog altfel se incurca pune random 5267 si spera ca nu mai este folosit acest numar daca chiar nu gasesti unde sunt

 #define DIALOG_GOTOJOB 5267

  • Like 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

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.