Jump to content
  • 0

Problema Comanda


AGaaA

Question

3 answers to this question

Recommended Posts

  • 0
color1;
color1 = strval(tmp);

if(color1 < 128 && color1 > 255)
{
    SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Wrong color id!");
    return 1;
}

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
    SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /v allcolors [ColorOneID] [ColorTwoID]");
    return 1;
}

new color2;
color2 = strval(tmp);

if(color2 < 128 && color2 > 255)
{
    SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Wrong color id!");
    return 1;
}

 

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

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.