Jump to content

[Tutorial] Cum sa faci o comanda de genul: /acolor.


Recommended Posts

Posted

Aceiasi eroare. Daca repari eroarea iti dau +1

CMD:pcolor(playerid, params[])
{
     if(IsPlayerConnected(playerid)) 
     {
          ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "Color name crazy", "SMS\nRed", "Select", "Cancel");
     }
     return 1;
}
Posted (edited)

CMD:pcolor(playerid, params[])
if(IsPlayerConnected(playerid)) 
{
ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "Color name crazy", "SMS\nRed", "Select", "Cancel");
return 1;
}
}
Incearca asa...astept quote

 

 

 

Esti nab rau de tot in scripting x_X.

Si mai vi si comentezi la topicurile mele cu sisteme de SAMP.

Cum sa pui 2 paranteze care inchid jos cand sus ai doar una care deschide. LOL, asta e la mintea cocosului.

 

 

@Mario. - Incearca asta:

 

CMD:pcolor(playerid, params[])
{
       ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "Color name crazy", "SMS\nRed", "Select", "Cancel");
       return 1;
}

 

sau:

if(strcmp(cmd, "/pcolor", true) == 0)
{
       if(IsPlayerConnected(playerid))
       {
               ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "Color name crazy", "SMS\nRed", "Select", "Cancel");
               return 1;
       }
       return 1;
}

 

Sau daca vrei sa continui ideea ta:

CMD:pcolor(playerid, params[])

{

      if(IsPlayerConnected(playerid))

      {

             ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "Color name crazy", "SMS\nRed", "Select", "Cancel");

             return 1;

      }

      return 1; 

}

Edited by 69IAD
  • 1 year later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp